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
37 changes: 37 additions & 0 deletions networking_generic_switch/devices/netmiko_devices/dell.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,36 +39,73 @@ class DellOS10(netmiko_devices.NetmikoSwitch):
"exit",
)

PLUG_BOND_TO_NETWORK = (
"interface {bond}",
"switchport mode access",
"switchport access vlan {segmentation_id}",
"exit",
)

DELETE_PORT = (
"interface {port}",
"no switchport access vlan",
"exit",
)

UNPLUG_BOND_FROM_NETWORK = (
"interface {bond}",
"no switchport access vlan",
"exit",
)

ADD_NETWORK_TO_TRUNK = (
"interface {port}",
"switchport mode trunk",
"switchport trunk allowed vlan {segmentation_id}",
"exit",
)

ADD_NETWORK_TO_BOND_TRUNK = (
"interface {bond}",
"switchport mode trunk",
"switchport trunk allowed vlan {segmentation_id}",
"exit",
)

REMOVE_NETWORK_FROM_TRUNK = (
"interface {port}",
"no switchport trunk allowed vlan {segmentation_id}",
"exit",
)

DELETE_NETWORK_ON_BOND_TRUNK = (
"interface {bond}",
"no switchport trunk allowed vlan {segmentation_id}",
"exit",
)

SET_NATIVE_VLAN = (
'interface {port}',
'switchport mode trunk',
'switchport access vlan {segmentation_id}',
)

SET_NATIVE_VLAN_BOND = (
'interface {bond}',
'switchport mode trunk',
'switchport access vlan {segmentation_id}',
)

DELETE_NATIVE_VLAN = (
'interface {port}',
'no switchport access vlan',
)

DELETE_NATIVE_VLAN_BOND = (
'interface {bond}',
'no switchport access vlan',
)

ENABLE_PORT = (
"interface {port}",
"no shutdown",
Expand Down
2 changes: 1 addition & 1 deletion networking_generic_switch/devices/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def sanitise_config(config):
:param config: a configuration dict to sanitise.
:returns: a copy of the configuration, with sensitive fields removed.
"""
sanitised_fields = {"password", "ip", "device_type", "username",
sanitised_fields = {"password", "secret", "ip", "device_type", "username",
"session_log"}
return {
key: "******" if key in sanitised_fields else value
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Add bond trunk commands so LACP bond trunk ports are supported on Dell OS10
switches.