Improve compatibility with netaddr 1.x

netaddr 0.10 added flags to define the semantics while parsing
IP addresses. available are inet_pton() and inet_aton() semantics,
which inet_aton() semantics the default in 0.10 and inet_pton() the
default in 1.x. As the testsuite specifically tests for aton semantics,
set that flag.

Change-Id: I06eec5619f958f6c4b90f6068c361a18c2356be6
This commit is contained in:
Dirk Müller 2024-05-10 10:19:00 +02:00
parent a75eff49e6
commit f45ee765f9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ from ovsdbapp.backend.ovs_idl import rowview
def normalize_ip(ip):
return str(netaddr.IPAddress(ip))
return str(netaddr.IPAddress(ip, flags=netaddr.INET_ATON))
def normalize_ip_port(ipport):

View File

@ -2,6 +2,6 @@
# date but we do not test them so no guarantee of having them all correct. If
# you find any incorrect lower bounds, let us know or propose a fix.
fixtures>=3.0.0 # Apache-2.0/BSD
netaddr>=0.7.18 # BSD
netaddr>=0.10.0 # BSD
ovs>=2.10.0 # Apache-2.0
pbr!=2.1.0,>=2.0.0 # Apache-2.0