IPI-PORT-VLAN
Configure isolated vlan id
Isolated VLAN identifier
Attribute Name: isolated-vlan-id
Attribute Type: string
Attribute Range: 2-4094,2-4094
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<global>
<config>
<isolated-vlan-id>2</isolated-vlan-id> <!-- operation="delete"-->
</config>
</global>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (provider-network) isolated-vlan WORD
Configure cvlan registration table
cvlan registration table
Attribute Name: cvlan-registration-table
Attribute Type: string
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<global>
<config>
<cvlan-registration-table>WORD</cvlan-registration-table> <!-- operation="delete"-->
</config>
</global>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (customer-edge) vlan registration WORD
Configure interface mode
Set the interface to access or trunk or hybrid mode for VLANs
Attribute Name: interface-mode
Attribute Type: enum (access|hybrid|trunk|customer-network|provider-network|customer-edge access|customer-edge hybrid|customer-edge trunk)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan> <!-- operation="delete"-->
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport mode (access|hybrid|trunk|provider-network|customer-edge access|customer-edge hybrid|customer-edge trunk)
Configure name
Set the interface to access or trunk or hybrid mode for VLANs
Attribute Name: interface-mode
Attribute Type: enum (access|hybrid|trunk|customer-network|provider-network|customer-edge access|customer-edge hybrid|customer-edge trunk)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan> <!-- operation="delete"-->
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport mode (customer-network)
Configure acceptable frame type
Use this attribute to set the interface acceptable frame types. This processing occurs after VLAN classification
Attribute Name: acceptable-frame-type
Attribute Type: enum (vlan-tagged|all)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<acceptable-frame-type>all</acceptable-frame-type> <!-- operation="delete"-->
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport mode (hybrid) acceptable-frame-type (vlan-tagged|all)
Configure disable native vlan
Use this attribute to disable native VLAN for the port. Untagged frames will be dropped.
Attribute Name: disable-native-vlan
Attribute Type: uint8
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
</disable-native-vlan><!-- operation="delete"-->
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport mode (trunk) disable-native-vlan
Configure remove default vlan
Use this attribute to remove default VLAN for the port. Untagged frames will be dropped.
Attribute Name: remove-default-vlan
Attribute Type: uint8
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
</remove-default-vlan><!-- operation="delete"-->
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport mode (trunk) remove-default-vlan
Configure vlan id
Default VLAN identifier
Attribute Name: vlan-id
Attribute Type: uint16
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<vlans>
<config>
<vlan-id>2</vlan-id> <!-- operation="delete"-->
</config>
</vlans>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (access|hybrid) vlan <2-4094>
Configure native vlan id
Native VLAN ID
Attribute Name: native-vlan-id
Attribute Type: uint16
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<vlans>
<config>
<native-vlan-id>2</native-vlan-id> <!-- operation="delete"-->
</config>
</vlans>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (trunk) native vlan <2-4094>
Configure translated svlan id
Specifies translated service VLAN identifier
Attribute Name: translated-svlan-id
Attribute Type: uint16
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<svlan-translations>
<svlan-translation>
<original-svlan-id>VLAN_ID</original-svlan-id>
<config>
<original-svlan-id>VLAN_ID</original-svlan-id>
</config>
<translated-svlan-id>VLAN_ID</translated-svlan-id> <!-- operation="delete"-->
</svlan-translation>
</svlan-translations>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (provider-network) vlan translation svlan VLAN_ID svlan VLAN_ID
Configure original svlan id
Specifies translated service VLAN identifier
Attribute Name: translated-svlan-id
Attribute Type: uint16
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<svlan-translations>
<svlan-translation>
<original-svlan-id>VLAN_ID</original-svlan-id>
<config>
<original-svlan-id>VLAN_ID</original-svlan-id>
</config>
<translated-svlan-id>VLAN_ID</translated-svlan-id> <!-- operation="delete"-->
</svlan-translation>
</svlan-translations>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (customer-network) vlan translation svlan VLAN_ID svlan VLAN_ID
Configure translated cvlan id
Specifies translated service VLAN identifier
Attribute Name: translated-svlan-id
Attribute Type: uint16
Attribute Name: translated-cvlan-id
Attribute Type: uint16
Attribute Range: 1-4095
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<svlan-translations>
<svlan-translation>
<original-svlan-id>VLAN_ID</original-svlan-id>
<config>
<original-svlan-id>VLAN_ID</original-svlan-id>
<translated-cvlan-id>1</translated-cvlan-id> <!-- operation="delete"-->
</config>
<translated-svlan-id>VLAN_ID</translated-svlan-id> <!-- operation="delete"-->
</svlan-translation>
</svlan-translations>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (provider-network) vlan translation svlan VLAN_ID cvlan <1-4095> svlan VLAN_ID
Configure cvlan id
Specifies translated service VLAN identifier
Attribute Name: translated-svlan-id
Attribute Type: uint16
Attribute Range: 1-4095
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<cvlan-svlan-translations>
<cvlan-svlan-translation>
<svlan-id>1</svlan-id>
<config>
<svlan-id>1</svlan-id>
<cvlan-id>1</cvlan-id>
</config>
<cvlan-id>1</cvlan-id>
<translated-svlan-id>1</translated-svlan-id>
</cvlan-svlan-translation>
</cvlan-svlan-translations>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (provider-network) vlan translation cvlan <1-4095> svlan <1-4095> svlan <1-4095>
Configure svlan id
Specifies translated service VLAN identifier
Attribute Name: translated-svlan-id
Attribute Type: uint16
Attribute Range: 1-4095
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<switched-vlans>
<switched-vlan>
<interface-mode>access</interface-mode>
<config>
<interface-mode>access</interface-mode>
</config>
<cvlan-svlan-translations>
<cvlan-svlan-translation>
<svlan-id>1</svlan-id>
<config>
<svlan-id>1</svlan-id>
<cvlan-id>1</cvlan-id>
</config>
<cvlan-id>1</cvlan-id>
<translated-svlan-id>1</translated-svlan-id>
</cvlan-svlan-translation>
</cvlan-svlan-translations>
</switched-vlan>
</switched-vlans>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport (customer-network) vlan translation cvlan <1-4095> svlan <1-4095> svlan <1-4095>
Configure logging
port security logging
Attribute Name: logging
Attribute Type: uint8
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<port-security>
<config>
</logging><!-- operation="delete"-->
</config>
</port-security>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport port-security logging enable
Configure mode
port security mode type
Attribute Name: mode
Attribute Type: enum (static|default)
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<port-security>
<config>
<mode>2</mode>
</config>
</port-security>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport port-security
Configure maximum limit
Maximum limit for port security
Attribute Name: maximum-limit
Attribute Type: uint16
Default Value: 1
Attribute Range: 1-1000
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<port-security>
<config>
<maximum-limit>1</maximum-limit> <!-- operation="delete"-->
</config>
</port-security>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport port-security maximum <1-1000>
Configure mac address
Use this attribute to configure the static forwarding entry for port-security
This command is supported when following feature are enabled Provider bridging feature
Attribute Name: mac-address
Attribute Type: string
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<port-security>
<secure-mac>
<default-vlan-mappings>
<default-vlan-mapping> <!-- operation="delete"-->
<mac-address>XXXX.XXXX.XXXX</mac-address>
<config>
<mac-address>XXXX.XXXX.XXXX</mac-address>
</config>
</default-vlan-mapping>
</default-vlan-mappings>
</secure-mac>
</port-security>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport port-security mac-address XXXX.XXXX.XXXX
Configure associate vlan id
Private VLAN Association
Attribute Name: associate-vlan-id
Attribute Type: uint16
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<private-vlan>
<associations>
<association>
<vlan-id>2</vlan-id>
<config>
<vlan-id>2</vlan-id>
</config>
<associate-vlan-id>2</associate-vlan-id>
</association>
</associations>
</private-vlan>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport private-vlan host-association <2-4094> add <2-4094>
Configure mapping vlan id
Primary vlan identifier
Attribute Name: vlan-id
Attribute Type: uint16
Attribute Name: mapping-vlan-id
Attribute Type: string
Attribute Range: 2-4094
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<private-vlan>
<associations>
<association> <!-- operation="delete"-->
<vlan-id>2</vlan-id>
<config>
<vlan-id>2</vlan-id>
<mapping-vlan-id>VLAN_ID</mapping-vlan-id>
</config>
</association>
</associations>
</private-vlan>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport private-vlan mapping <2-4094> add VLAN_ID
Configure association trunk vlan id
private-vlan Mapping
Attribute Name: association-trunk-vlan-id
Attribute Type: uint16
Netconf edit-config payload
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-interface">
<interface>
<name>IFNAME</name>
<config>
<name>IFNAME</name>
</config>
<port-vlan xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<private-vlan>
<associations>
<association>
<vlan-id>2</vlan-id>
<config>
<vlan-id>2</vlan-id>
</config>
<association-trunk-vlan-id>2</association-trunk-vlan-id>
</association>
</associations>
</private-vlan>
</port-vlan>
</interface>
</interfaces>
Command Syntax
switchport private-vlan association-trunk <2-4094> <2-4094>
Configure instance name
Specifies service VLAN identifier for static MAC entry
Attribute Name: svlan-id
Attribute Type: uint16
Attribute Range: 2-4094
Attribute Name: action
Attribute Type: enum (discard|forward)
Attribute Name: interface-name
Attribute Type: string
Attribute Range: 1-33
Netconf edit-config payload
<network-instances xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-network-instance">
<network-instance>
<instance-name>1</instance-name>
<config>
<instance-name>WORD</instance-name>
<instance-type>l2ni</instance-type>
</config>
<instance-type>l2ni</instance-type>
<bridge xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-bridge">
<vlan-static-fdb xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<entries>
<entry>
<vlan-id>2</vlan-id>
<config>
<vlan-id>2</vlan-id>
<mac-address>XXXX.XXXX.XXXX</mac-address>
<action>discard</action>
<interface-name>IFNAME</interface-name>
</config>
<mac-address>XXXX.XXXX.XXXX</mac-address>
<svlan-id>2</svlan-id>
</entry>
</entries>
</vlan-static-fdb>
</bridge>
</network-instance>
</network-instances>
Command Syntax
bridge <1-32> address XXXX.XXXX.XXXX (discard|forward) IFNAME vlan <2-4094> svlan <2-4094>
Configure instance type
Specifies VLAN identifier for static MAC entry in case of provider-network VLAN will be considered as service VLAN
Attribute Name: vlan-id
Attribute Type: uint16
Attribute Range: 2-4094
Attribute Name: action
Attribute Type: enum (discard|forward)
Attribute Name: interface-name
Attribute Type: string
Attribute Range: 1-33
Netconf edit-config payload
<network-instances xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-network-instance">
<network-instance>
<instance-name>1</instance-name>
<config>
<instance-name>WORD</instance-name>
<instance-type>l2ni</instance-type>
</config>
<instance-type>l2ni</instance-type>
<bridge xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-bridge">
<vlan-static-fdb xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-port-vlan">
<entries>
<entry>
<vlan-id>2</vlan-id>
<config>
<vlan-id>2</vlan-id>
<mac-address>XXXX.XXXX.XXXX</mac-address>
<action>discard</action>
<interface-name>IFNAME</interface-name>
</config>
<mac-address>XXXX.XXXX.XXXX</mac-address>
</entry>
</entries>
</vlan-static-fdb>
</bridge>
</network-instance>
</network-instances>
Command Syntax
bridge <1-32> address XXXX.XXXX.XXXX (discard|forward) IFNAME vlan <2-4094>
Last modified date: 08/22/2023