PEF_VLANTAG#

code: 1708

# set
<module-index>/<port-index> PEF_VLANTAG [<flow_index>, <filter_type>, <vlan_type>] <use> <value> <mask>

# get
<module-index>/<port-index> PEF_VLANTAG [<flow_index>, <filter_type>, <vlan_type>] ?

Description#

Basic mode only. Defines the VLAN TAG settings for the VLAN filter.

<vlan_type> specifies the VLAN type:

  • VLAN1 (0), the inner VLAN Tag is specified for the filter (used also when there is only one VLAN tag) indicates single/inner VLAN-TPID = 0x8100.

  • VLAN2 (1), the outer VLAN Tag is specified for the filter indicates outer VLAN-TPID=0x88A8.

Note

For set, the only allowed filter_type is shadow-copy.

Actions#

set, get

Parameters#

  1. use: byte, specifies the use of VLAN TAG information

  • OFF = 0

  • ON = 1

  1. value: integer, specifying the 12 bit value of the tag. Default value: 0.

  2. mask: hex2, specifying the 12 bit value of the tag. Default value: 0x0FFF

Example#

# set
input:  0/1 PEF_VLANTAG [1,0,0] OFF 0 0x0FFF
output: <OK>

# get
input:  0/1 PEF_VLANTAG [1,0,0] ?
output: 0/1 PEF_VLANTAG [1,0,0] OFF 0 0x0FFF