From a4d136b414b7ddb2647fc7d1a32d36596717c8ed Mon Sep 17 00:00:00 2001 From: Bartosz Bezak Date: Thu, 15 Jan 2026 12:31:45 +0100 Subject: [PATCH] Add Arista bond trunk support Change-Id: Icf6a2c6063261b69cf2cb7a07e505b6f52eabecf Signed-off-by: Bartosz Bezak (cherry picked from commit de89f5119ea8b2bdff9ed72929273fc1a729d53e) --- .../devices/netmiko_devices/arista.py | 23 +++++++++++++++++++ .../arista-bond-trunk-4a376a636f899173.yaml | 5 ++++ 2 files changed, 28 insertions(+) create mode 100644 releasenotes/notes/arista-bond-trunk-4a376a636f899173.yaml 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.