Merge "Replace netutils function to keep non-strict IPv4 check"

This commit is contained in:
Zuul 2024-11-04 16:02:33 +00:00 committed by Gerrit Code Review
commit 84507645f8

View File

@ -575,9 +575,7 @@ def remove_macs_from_lsp_addresses(addresses):
"""
ip_list = []
for addr in addresses:
ip_list.extend([x for x in addr.split() if
(netutils.is_valid_ipv4(x) or
netutils.is_valid_ipv6(x))])
ip_list.extend([x for x in addr.split() if netutils.is_valid_ip(x)])
return ip_list