Skip to content

Commit a4d136b

Browse files
committed
Add Arista bond trunk support
Change-Id: Icf6a2c6063261b69cf2cb7a07e505b6f52eabecf Signed-off-by: Bartosz Bezak <bartosz@stackhpc.com> (cherry picked from commit de89f51)
1 parent 6a43534 commit a4d136b

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

networking_generic_switch/devices/netmiko_devices/arista.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,41 @@ class AristaEos(netmiko_devices.NetmikoSwitch):
4545
'switchport trunk allowed vlan add {segmentation_id}'
4646
)
4747

48+
SET_NATIVE_VLAN_BOND = (
49+
'interface {bond}',
50+
'switchport mode trunk',
51+
'switchport trunk native vlan {segmentation_id}',
52+
'switchport trunk allowed vlan add {segmentation_id}'
53+
)
54+
4855
DELETE_NATIVE_VLAN = (
4956
'interface {port}',
5057
'no switchport trunk native vlan {segmentation_id}',
5158
'switchport trunk allowed vlan remove {segmentation_id}',
5259
)
5360

61+
DELETE_NATIVE_VLAN_BOND = (
62+
'interface {bond}',
63+
'no switchport trunk native vlan {segmentation_id}',
64+
'switchport trunk allowed vlan remove {segmentation_id}',
65+
)
66+
5467
ADD_NETWORK_TO_TRUNK = (
5568
'interface {port}',
5669
'switchport trunk allowed vlan add {segmentation_id}'
5770
)
5871

72+
ADD_NETWORK_TO_BOND_TRUNK = (
73+
'interface {bond}',
74+
'switchport trunk allowed vlan add {segmentation_id}'
75+
)
76+
5977
REMOVE_NETWORK_FROM_TRUNK = (
6078
'interface {port}',
6179
'switchport trunk allowed vlan remove {segmentation_id}'
6280
)
81+
82+
DELETE_NETWORK_ON_BOND_TRUNK = (
83+
'interface {bond}',
84+
'switchport trunk allowed vlan remove {segmentation_id}'
85+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Add Arista EOS bond trunk commands so LACP bond trunk ports
5+
are supported.

0 commit comments

Comments
 (0)