Skip to content

Commit

Permalink
Fix(eos_designs): Properly strip empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc committed Dec 18, 2023
1 parent 0ab1a93 commit 8dfa152
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,22 +539,18 @@ interface Ethernet14
switchport
!
interface Ethernet51
description
shutdown
switchport
!
interface Ethernet52
description
shutdown
switchport
!
interface Ethernet53
description
shutdown
switchport
!
interface Ethernet54
description
shutdown
switchport
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -671,22 +671,18 @@ ethernet_interfaces:
type: switched
- name: Ethernet51
peer_type: network_port
description: ''
shutdown: true
type: switched
- name: Ethernet52
peer_type: network_port
description: ''
shutdown: true
type: switched
- name: Ethernet53
peer_type: network_port
description: ''
shutdown: true
type: switched
- name: Ethernet54
peer_type: network_port
description: ''
shutdown: true
type: switched
mlag_configuration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ def _get_ethernet_interface_cfg(self, adapter: dict, node_index: int, connected_
if (flowcontrol_received := get(adapter, "flowcontrol.received")) is not None:
ethernet_interface["flowcontrol"] = {"received": flowcontrol_received}

return strip_null_from_data(ethernet_interface)
return strip_null_from_data(ethernet_interface, strip_values_tuple=(None, ""))

0 comments on commit 8dfa152

Please sign in to comment.