Printer FriendlyEmail Article Link

Spirent TestCenter- HLTAPI: Why all the Port groups in the module are being taken over by script and are getting released?

Environment/Versions
  • Spirent TestCenter
  • Automation- HLTAPI
Answer
  • Use of "-reset" attribute along with -break_locks in sth::connect API resets all the port groups.

              sth::connect -device $device -port_list [list $port1 $port2] -break_locks 1 -reset

  • Description of attribute:

           -reset
             Removes all port traffic configurations for the specified chassis and ports (using the -device and/or -port_list arguments). Use the -reset argument when you want to create a new test configuration for a connection that you  have already established. You can also use -reset in combination with -break_locks to establish a connection to a chassis and reserve (and re-initialize) ports.
             The following example deletes the ports and disconnects from the chassis, and then reconnects to the chassis and reserves the ports provided in the port list (-port_list):
sth::connect -device $device -port_handle $port_list -reset

 


Product : Spirent TestCenter,Automation,API,Spirent TestCenter