PE_BANDSHAPER

code: 1663

# set
<module-index>/<port-index> PE_BANDSHAPER [<flow_index>] <on_off> <mode> <cir> <cbs> <buffer_size>

# get
<module-index>/<port-index> PE_BANDSHAPER [<flow_index>] ?

Description

Configures the bandwidth shaper. L1 (0) (Shaper performed at Layer 1 level. I.e. including the preamble and min interpacket gap) L2 (1) (Shaper performed at Layer 2 level. I.e. excluding the preamble and min interpacket gap) Default value: L2 (0)

Actions

set, get

Parameters

  1. on_off: byte, enables/disables shaper.

  • OFF = 0

  • ON = 1

  1. mode: byte, shaper mode.

  • L1 = 0

  • L2 = 1

  1. cir: integer, shaper committed information rate in units of 100 kbps (range 0 to 1000000), default is 0.

  2. cbs: integer, shaper committed burst size in bytes (range 0 to 4194304), default is 0.

  3. buffer_size: integer, shaper buffer size in bytes (range 0 to 2097152), default is 0.

Example

# set
input:  0/1 PE_BANDSHAPER [0] OFF L1 1 1 1
output: <OK>

# get
input:  0/1 PE_BANDSHAPER [0] ?
output: 0/1 PE_BANDSHAPER [0] OFF L1 1 1 1