PEF_MPLSTOC#

code: 1712

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

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

Description#

Basic mode only. Defines the MPLS TOC settings for the filter.

Note

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

Actions#

set, get

Parameters#

  1. use: byte, specifies the use of MPLS TOC information

  • OFF = 0

  • ON = 1

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

  2. mask: hex, specifying the filter mask for the value of the MPLS TOC. Default value: 0x07

Example#

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

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