pyaoscx.lldp module¶
-
pyaoscx.lldp.
get_all_lldp_neighbors
(**kwargs)¶ Perform a GET call to get a list of all entries in the lldp_neighbors table. This is currently only supported in v1, so even a v10.04 or later AOS-CX device will use the v1 REST call.
Parameters: kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function Returns: List of all lldp_neighors in the table
-
pyaoscx.lldp.
get_interface_lldp_neighbor_mac_port
(int_name, depth=0, selector=None, **kwargs)¶ Perform a GET call to retrieve lldp_neighbor MAC and port data for an Interface. This will return a list if using v1, or a dictionary if using v10.04 or later.
Parameters: - int_name – Alphanumeric name of the interface
- depth – Integer deciding how many levels into the API JSON that references will be returned.
- selector – Alphanumeric option to select specific information to return. The options are ‘configuration’, ‘status’, or ‘statistics’. If running v10.04 or later, an additional option ‘writable’ is included.
- kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns: List/dictionary containing lldp_neighbor MAC and port data
-
pyaoscx.lldp.
get_lldp_neighbor_info
(int_name, depth=0, selector=None, **kwargs)¶ Perform a GET call to retrieve LLDP neighbor info for an Interface
Parameters: - int_name – Alphanumeric name of the interface
- depth – Integer deciding how many levels into the API JSON that references will be returned.
- selector – Alphanumeric option to select specific information to return. The options are ‘configuration’, ‘status’, or ‘statistics’. If running v10.04 or later, an additional option ‘writable’ is included.
- kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns: Dictionary containing LLDP neighbor info