mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Missing device reference
This commit is contained in:
parent
17428e7057
commit
e92a72cdb6
@ -1597,6 +1597,7 @@ class InterfaceCSVForm(forms.ModelForm):
|
|||||||
|
|
||||||
|
|
||||||
def clean_lag(self):
|
def clean_lag(self):
|
||||||
|
device = None
|
||||||
if self.device is not None:
|
if self.device is not None:
|
||||||
interface_ordering = self.device.device_type.interface_ordering
|
interface_ordering = self.device.device_type.interface_ordering
|
||||||
lag = Interface.objects.order_naturally(method=interface_ordering).filter(
|
lag = Interface.objects.order_naturally(method=interface_ordering).filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user