PEF_VLANPCP#

code: 1709

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

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

Description#

Basic mode only. Defines the VLAN PCP 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 PCP information

  • OFF = 0

  • ON = 1

  1. value: short integer, specifying the value of the PCP. Default value: 0 (Range: 0 to 7)

  2. mask: hex, specifying the 8 bit value mask. Default value: 0x07

Example#

# set
input:  0/1 PEF_VLANPCP [1,0,0] OFF 0 0x07
output: <OK>

# get
input:  0/1 PEF_VLANPCP [1,0,0] ?
output: 0/1 PEF_VLANPCP [1,0,0] OFF 0 0x07