Skip to content

Commit a6cea90

Browse files
committed
variable update
1 parent 258a812 commit a6cea90

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ def _set_l3_interfaces(
119119

120120
interface_name = l3_interface.interfaces[node_index]
121121
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)
122+
interface_ip = get_ip_from_ip_prefix(ip_address) if ip_address and "/" in ip_address else ip_address
125123
# if 'descriptions' is set, it is preferred
126124
interface_description = l3_interface.descriptions[node_index] if l3_interface.descriptions else l3_interface.description
127125
interface = EosCliConfigGen.EthernetInterfacesItem(

0 commit comments

Comments
 (0)