mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Messing up interface ordering
This commit is contained in:
parent
952f6e7754
commit
37c0538f7d
@ -1599,7 +1599,7 @@ class InterfaceCSVForm(forms.ModelForm):
|
||||
def clean_lag(self):
|
||||
device = None
|
||||
if self.fields['device'] is not None:
|
||||
interface_ordering = self.fields['device'].device_type.interface_ordering
|
||||
interface_ordering = device.device_type.interface_ordering
|
||||
lag = Interface.objects.order_naturally(method=interface_ordering).filter(
|
||||
device=self.fields['device'], form_factor=IFACE_FF_LAG).get(
|
||||
lag=self.cleaned_data['lag'], name=lag
|
||||
|
Loading…
Reference in New Issue
Block a user