Add and Remove All Tagged VLANs

A new wrapper is introduced to add and remove selective VLAN at the interface level.

To enable addition and deletion of a tagged port selectively for VLAN, the existing commands vlan-config add and vlan-config remove are used. The vlan-config add command supports adding an interface to all VLANs or to specific VLANs as tagged members. The vlan-config remove command supports removing all VLANs or specific VLANs from the physical port.

Adding Selective VLAN

The vlan-config add command will create a new VLAN and add the interface to it, if the interface being added is the first interface. The command can add a port to non-active non-configured VLAN. The command is available in MIF mode. The maximum VLAN or VLAN range supported in a single input is 1024. The command keyword all-tagged will put a port as a tagged member of all currently selected VLANs.

device(config-if-e1000-1/1/1)# vlan-config add             
  all-tagged    Add interface to all VLAN(s)
  tagged-vlan   Add interface to VLAN(s)
device(config-if-e1000-1/1/1)# vlan-config add tagged-vlan 2 3 4 
Added tagged port(s) ethe 1/1/1 to port-vlan 2.
Added tagged port(s) ethe 1/1/1 to port-vlan 3.
Added tagged port(s) ethe 1/1/1 to port-vlan 4.
device(config-if-e1000-1/1/1)#
device(config-if-e1000-1/1/1)# vlan-config add tagged-vlan 1001 to 1005 
Added tagged port(s) ethe 1/1/1 to port-vlan 1001.
Added tagged port(s) ethe 1/1/1 to port-vlan 1002.
Added tagged port(s) ethe 1/1/1 to port-vlan 1003.
Added tagged port(s) ethe 1/1/1 to port-vlan 1004.
Added tagged port(s) ethe 1/1/1 to port-vlan 1005.
ICX7450-48P Switch(config-if-e1000-1/1/1)#

Note: The CLI prompt will not be available for the next command until the port is added to all applicable VLANs in the system.

Removing Selective VLAN

The maximum VLAN or VLAN range supported in single input is 1024.

device(config-if-e40000-1/1/1)# vlan-config remove 2000 to 2005
(port(s) will be removed from 300 VLANs using this command)

Note: The command is a non-savable command, which removes the interface as a tagged or untagged member of all configured and active VLAN. The command is available in MIF mode. The command line interface prompt will not be available for next command until the port is added to all the VLANs in the system.