1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix reference to obsolete constant IFACE_MODE_TAGGED

This commit is contained in:
Jeremy Stretch
2020-01-15 14:54:46 -05:00
parent 88267e9d05
commit b98ac64ac2

View File

@@ -104,7 +104,7 @@ class InterfaceCommonForm:
self.cleaned_data['tagged_vlans'] = []
# Validate tagged VLANs; must be a global VLAN or in the same site
elif self.cleaned_data['mode'] == IFACE_MODE_TAGGED:
elif self.cleaned_data['mode'] == InterfaceModeChoices.MODE_TAGGED:
valid_sites = [None, self.cleaned_data['device'].site]
invalid_vlans = [str(v) for v in tagged_vlans if v.site not in valid_sites]