pyaoscx.evpn module¶
-
pyaoscx.evpn.
add_evpn_vlan
(vlan_id, export_route=['auto'], import_route=['auto'], rd='auto', **kwargs)¶ Perform POST call to create an EVPN VLAN association Note that this functions has logic that works for both v1 and v10.04
Parameters: - vlan_id – Integer representing the VLAN ID
- export_route – List of route targets to be exported from the VLAN in ASN:nn format, or auto.
- import_route – List of route targets to be imported from the VLAN in ASN:nn format, or auto.
- rd – Alphanumeric EVPN RD in ASN:nn format or IP:nn format, or auto.
- kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function
Returns: True if successful, False otherwise
-
pyaoscx.evpn.
create_evpn_instance
(**kwargs)¶ Perform POST calls to create an EVPN instance
Parameters: kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function Returns: True if successful, False otherwise
-
pyaoscx.evpn.
delete_evpn_instance
(**kwargs)¶ Perform DELETE calls to remove an EVPN instance
Parameters: kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function Returns: True if successful, False otherwise
-
pyaoscx.evpn.
get_evpn_info
(**kwargs)¶ Perform a GET call to receive the EVPN information on the system
Parameters: kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function Returns: Information
-
pyaoscx.evpn.
get_evpn_vlan_list
(**kwargs)¶ Perform a GET call to receive a list of VLANs associated with the EVPN instance
Parameters: kwargs – keyword s: requests.session object with loaded cookie jar keyword url: URL in main() function Returns: List of EVPN VLANs