P_TRAFFIC#

code: 124

# set
<module-index>/<port-index> P_TRAFFIC <on_off>

# get
<module-index>/<port-index> P_TRAFFIC ?

Description#

Whether a port is transmitting packets. When on, the port generates a sequence of packets with contributions from each stream that is enabled. The streams are configured using the PS_xxx parameters.

Note

From Release 57.1, if any of the specified packet sizes cannot fit into the packet generator, this command will return FAILED and not start the traffic. While traffic is on the streams for this port cannot be enabled or disabled, and the configuration of those streams that are enabled cannot be changed.

Actions#

set, get

Parameters#

  1. on_off: byte, the traffic generation status of the port.

  • STOP = 0

  • START = 1

Example#

# set
input:  0/1 P_TRAFFIC STOP
output: <OK>

# get
input:  0/1 P_TRAFFIC ?
output: 0/1 P_TRAFFIC STOP