Printer FriendlyEmail Article Link

Spirent TestCenter-HLTAPI: Which are API to break and restore link using HLTAPI Python?

Environment/Versions
  • Spient TestCenter
  • HLTAPI
  • Python
Answer

sth.interface_control() function provides an option to break and restore link in HLTAPI. Below are examples to perform the same


sth.interface_control(
mode = 'break_link',
port_handle = [port_handle[0],port_handle[1]]);


sth.interface_control(
mode = 'restore_link',
port_handle = [port_handle[0],port_handle[1]]);

 



Product : Automation,API,Spirent TestCenter