mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
pep8
This commit is contained in:
parent
077e5c465e
commit
9c681e63dc
@ -2456,7 +2456,7 @@ class InterfaceView(generic.ObjectView):
|
|||||||
vdc_table = tables.VirtualDeviceContextTable(
|
vdc_table = tables.VirtualDeviceContextTable(
|
||||||
data=instance.vdcs.restrict(request.user, 'view').prefetch_related('device'),
|
data=instance.vdcs.restrict(request.user, 'view').prefetch_related('device'),
|
||||||
exclude=('tenant', 'tenant_group', 'primary_ip', 'primary_ip4', 'primary_ip6', 'comments', 'tags',
|
exclude=('tenant', 'tenant_group', 'primary_ip', 'primary_ip4', 'primary_ip6', 'comments', 'tags',
|
||||||
'created', 'last_updated', 'actions', 'oob_ip', 'oob_ip4', 'oob_ip6' ),
|
'created', 'last_updated', 'actions', 'oob_ip', 'oob_ip4', 'oob_ip6'),
|
||||||
orderable=False
|
orderable=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@ def clear_primary_ip(instance, **kwargs):
|
|||||||
if virtualmachine:
|
if virtualmachine:
|
||||||
virtualmachine.save()
|
virtualmachine.save()
|
||||||
|
|
||||||
|
|
||||||
@receiver(pre_delete, sender=IPAddress)
|
@receiver(pre_delete, sender=IPAddress)
|
||||||
def clear_oob_ip(instance, **kwargs):
|
def clear_oob_ip(instance, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user