diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index c26b26a65..4c3b4c066 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -1607,7 +1607,7 @@ class InterfaceCSVForm(forms.ModelForm): device=device_id, form_factor=IFACE_FF_LAG).get( lag=lag_name.id ) - if not lag: + if not self.lag: return None return lag