pyaoscx.loop_protect module

pyaoscx.loop_protect.clear_port_loop_protect(port_name, **kwargs)

Perform GET and PUT calls to clear a Port’s Loop-protect settings

Parameters:
  • port_name – Alphanumeric name of the Port
  • kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns:

True if successful, False otherwise

pyaoscx.loop_protect.update_port_loop_protect(interface_name, action=None, vlan_list=[], **kwargs)

Perform GET and PUT calls to apply Loop-protect options on an interface.

Parameters:
  • interface_name – Alphanumeric String that is the name of the interface that will apply loop-protect options
  • action – Alphanumeric String that will specify the actions for the Loop-protect interface. The options are “do-not-disable”, “tx-disable”, “tx-rx-disable”, or None.
  • vlan_list – List of VLANs that will be configured for Loop-protect on the interface
  • kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns:

True if successful, False otherwise