mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vlan: remove reserved VLAN check for builtin interfaces
Ticket: CM-10387 Reviewed By: roopa, wkok Testing Done: slaffer addons/vlan.py checks if a builtin interface's VLAN ID is within the switchd reserved VLAN range. This stops a user configuring any port- local VLANs within that range, despite it being a valid configuration in both a hardware and kernel sense. This commit removes the check for builtin interfaces only. The check of the bridge-vids list for a vlan-aware bridge still resides and correctly operates in addons/bridge.py.
This commit is contained in:
@@ -128,8 +128,6 @@ class vlan(moduleBase):
|
||||
vlanid = self._get_vlan_id(ifaceobj)
|
||||
if vlanid == -1:
|
||||
raise Exception('could not determine vlanid')
|
||||
if self._handle_reserved_vlan(vlanid, ifaceobj.name):
|
||||
return
|
||||
vlanrawdevice = self._get_vlan_raw_device(ifaceobj)
|
||||
if not vlanrawdevice:
|
||||
raise Exception('could not determine vlan raw device')
|
||||
|
Reference in New Issue
Block a user