We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258a812 commit a6cea90Copy full SHA for a6cea90
1 file changed
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
@@ -119,9 +119,7 @@ def _set_l3_interfaces(
119
120
interface_name = l3_interface.interfaces[node_index]
121
ip_address = l3_interface.ip_addresses[node_index] if l3_interface.ip_addresses else None
122
- interface_ip = ip_address
123
- if interface_ip and "/" in interface_ip:
124
- interface_ip = get_ip_from_ip_prefix(interface_ip)
+ interface_ip = get_ip_from_ip_prefix(ip_address) if ip_address and "/" in ip_address else ip_address
125
# if 'descriptions' is set, it is preferred
126
interface_description = l3_interface.descriptions[node_index] if l3_interface.descriptions else l3_interface.description
127
interface = EosCliConfigGen.EthernetInterfacesItem(
0 commit comments