Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions networking_generic_switch/devices/netmiko_devices/arista.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
)
5 changes: 5 additions & 0 deletions releasenotes/notes/arista-bond-trunk-4a376a636f899173.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Add Arista EOS bond trunk commands so LACP bond trunk ports
are supported.