diff --git a/networking_generic_switch/devices/netmiko_devices/arista.py b/networking_generic_switch/devices/netmiko_devices/arista.py index 42c1e110..434813df 100644 --- a/networking_generic_switch/devices/netmiko_devices/arista.py +++ b/networking_generic_switch/devices/netmiko_devices/arista.py @@ -45,18 +45,41 @@ class AristaEos(netmiko_devices.NetmikoSwitch): 'switchport trunk allowed vlan add {segmentation_id}' ) + SET_NATIVE_VLAN_BOND = ( + 'interface {bond}', + 'switchport mode trunk', + 'switchport trunk native vlan {segmentation_id}', + 'switchport trunk allowed vlan add {segmentation_id}' + ) + DELETE_NATIVE_VLAN = ( 'interface {port}', 'no switchport trunk native vlan {segmentation_id}', 'switchport trunk allowed vlan remove {segmentation_id}', ) + DELETE_NATIVE_VLAN_BOND = ( + 'interface {bond}', + 'no switchport trunk native vlan {segmentation_id}', + 'switchport trunk allowed vlan remove {segmentation_id}', + ) + ADD_NETWORK_TO_TRUNK = ( 'interface {port}', 'switchport trunk allowed vlan add {segmentation_id}' ) + ADD_NETWORK_TO_BOND_TRUNK = ( + 'interface {bond}', + 'switchport trunk allowed vlan add {segmentation_id}' + ) + REMOVE_NETWORK_FROM_TRUNK = ( 'interface {port}', 'switchport trunk allowed vlan remove {segmentation_id}' ) + + DELETE_NETWORK_ON_BOND_TRUNK = ( + 'interface {bond}', + 'switchport trunk allowed vlan remove {segmentation_id}' + ) diff --git a/releasenotes/notes/arista-bond-trunk-4a376a636f899173.yaml b/releasenotes/notes/arista-bond-trunk-4a376a636f899173.yaml new file mode 100644 index 00000000..040ba2a5 --- /dev/null +++ b/releasenotes/notes/arista-bond-trunk-4a376a636f899173.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Add Arista EOS bond trunk commands so LACP bond trunk ports + are supported.