P4_STATE_STATUS#

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

Description#

Returns status of the last port state change. If the port state has changed to PREPARE_FAIL, the status contains information about the reason for the fail. Currently the status will be “OK” in all other states.

Actions#

get

Parameters#

status: string, status of the last port state change

Example#

# get
input:  0/1 P4_STATE_STATUS ?
output: 0/1 P4_STATE_STATUS "OK"