Skip to content

Commit 7400ff8

Browse files
committed
Add Dell OS10 bond trunk support
Change-Id: Ic0cff059ca315aa3fd058d892a3c36f2da07eded Signed-off-by: Pierre Riteau <pierre@stackhpc.com> (cherry picked from commit df7c0a29577d49ca89dbdd567e5a4ccfa21a0d8e)
1 parent 47968e7 commit 7400ff8

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

networking_generic_switch/devices/netmiko_devices/dell.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,36 +39,73 @@ class DellOS10(netmiko_devices.NetmikoSwitch):
3939
"exit",
4040
)
4141

42+
PLUG_BOND_TO_NETWORK = (
43+
"interface {bond}",
44+
"switchport mode access",
45+
"switchport access vlan {segmentation_id}",
46+
"exit",
47+
)
48+
4249
DELETE_PORT = (
4350
"interface {port}",
4451
"no switchport access vlan",
4552
"exit",
4653
)
4754

55+
UNPLUG_BOND_FROM_NETWORK = (
56+
"interface {bond}",
57+
"no switchport access vlan",
58+
"exit",
59+
)
60+
4861
ADD_NETWORK_TO_TRUNK = (
4962
"interface {port}",
5063
"switchport mode trunk",
5164
"switchport trunk allowed vlan {segmentation_id}",
5265
"exit",
5366
)
5467

68+
ADD_NETWORK_TO_BOND_TRUNK = (
69+
"interface {bond}",
70+
"switchport mode trunk",
71+
"switchport trunk allowed vlan {segmentation_id}",
72+
"exit",
73+
)
74+
5575
REMOVE_NETWORK_FROM_TRUNK = (
5676
"interface {port}",
5777
"no switchport trunk allowed vlan {segmentation_id}",
5878
"exit",
5979
)
6080

81+
DELETE_NETWORK_ON_BOND_TRUNK = (
82+
"interface {bond}",
83+
"no switchport trunk allowed vlan {segmentation_id}",
84+
"exit",
85+
)
86+
6187
SET_NATIVE_VLAN = (
6288
'interface {port}',
6389
'switchport mode trunk',
6490
'switchport access vlan {segmentation_id}',
6591
)
6692

93+
SET_NATIVE_VLAN_BOND = (
94+
'interface {bond}',
95+
'switchport mode trunk',
96+
'switchport access vlan {segmentation_id}',
97+
)
98+
6799
DELETE_NATIVE_VLAN = (
68100
'interface {port}',
69101
'no switchport access vlan',
70102
)
71103

104+
DELETE_NATIVE_VLAN_BOND = (
105+
'interface {bond}',
106+
'no switchport access vlan',
107+
)
108+
72109
ENABLE_PORT = (
73110
"interface {port}",
74111
"no shutdown",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Add bond trunk commands so LACP bond trunk ports are supported on Dell OS10
5+
switches.

0 commit comments

Comments
 (0)