pyaoscx.mac module

pyaoscx.mac.get_all_mac_addresses_on_system(**kwargs)

Perform a GET call to get a list of all of the MAC address URIs for all VLANs on the system :param kwargs:

keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns:List of all MAC address URIs on the system
pyaoscx.mac.get_all_mac_addrs(vlan_id, **kwargs)

Perform a GET call to get MAC address(es) for VLAN

Parameters:
  • vlan_id – Numeric ID of VLAN
  • kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns:

List of MAC address URIs

pyaoscx.mac.get_mac_info(vlan_id, mac_type, mac_addr, **kwargs)

Perform a GET call to get MAC info

Parameters:
  • vlan_id – Numeric ID of VLAN
  • mac_type – The source of the MAC address. Must be “dynamic,” “VSX,” “static,” “VRRP,” “port-access-security,” “evpn,” or “hsc”
  • mac_addr – MAC address
  • kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns:

Dictionary containing MAC data