Spirent TestCenter
Automation
Python
We can make use of the below API:
stc.perform("attachPorts", portList=[hPortTx , hPortRx], autoConnect = "TRUE", RevokeOwner = "TRUE")