From b22744b03152a1a49a2e0445b86f770e0a853a10 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 9 Mar 2018 13:51:17 -0500 Subject: [PATCH] Removed validation constraint prohibitting a VLAN from being both tagged and untagged --- netbox/dcim/forms.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index e13a78460..ab17831a1 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -1692,13 +1692,8 @@ class InterfaceForm(BootstrapMixin, forms.ModelForm): super(InterfaceForm, self).clean() # Validate VLAN assignments - untagged_vlan = self.cleaned_data['untagged_vlan'] tagged_vlans = self.cleaned_data['tagged_vlans'] - # A VLAN cannot be both tagged and untagged - if untagged_vlan and untagged_vlan in tagged_vlans: - raise forms.ValidationError("VLAN {} cannot be both tagged and untagged.".format(untagged_vlan)) - # Untagged interfaces cannot be assigned tagged VLANs if self.cleaned_data['mode'] == IFACE_MODE_ACCESS and tagged_vlans: raise forms.ValidationError({