P_RESERVATION

code: 102

# set
<module-index>/<port-index> P_RESERVATION <operation>

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

Description

You set this command to reserve, release, or relinquish a port. The port must be reserved before any of its configuration can be changed, including streams, filters, capture, and datasets.The owner of the session must already have been specified. Reservation will fail if the chassis or module is reserved to other users.

Actions

set, get

Parameters

  1. operation: byte, (when set) the reservation of the test port, i.e., reserve, release, or relinquish.

  • RELEASE = 0

  • RESERVE = 1

  • RELINQUISH = 2

  1. operation: byte, (when get) containing the operation to perform. The reservation parameters are asymmetric with respect to set/get. When set, it contains the operation to perform. When get, it contains the status.

  • RELEASED = 0

  • RESERVED_BY_YOU = 1

  • RESERVED_BY_OTHER = 2

Example

# set
input:  0/1 P_RESERVATION RELEASE
output: <OK>

# get
input:  0/1 P_RESERVATION ?
output: 0/1 P_RESERVATION RESERVED_BY_YOU