diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/network-ports-tests.1.cfg b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/network-ports-tests.1.cfg index 7560d7457d8..3207eb3114b 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/network-ports-tests.1.cfg +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/network-ports-tests.1.cfg @@ -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 ! diff --git a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/network-ports-tests.1.yml b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/network-ports-tests.1.yml index ec3ad7522de..174dd455bd4 100644 --- a/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/network-ports-tests.1.yml +++ b/ansible_collections/arista/avd/molecule/eos_designs_unit_tests/intended/structured_configs/network-ports-tests.1.yml @@ -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: diff --git a/ansible_collections/arista/avd/roles/eos_designs/python_modules/connected_endpoints/ethernet_interfaces.py b/ansible_collections/arista/avd/roles/eos_designs/python_modules/connected_endpoints/ethernet_interfaces.py index 5705932afd7..d236ee1efde 100644 --- a/ansible_collections/arista/avd/roles/eos_designs/python_modules/connected_endpoints/ethernet_interfaces.py +++ b/ansible_collections/arista/avd/roles/eos_designs/python_modules/connected_endpoints/ethernet_interfaces.py @@ -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, ""))