From c5fc33a5743f812d370b81fcd1091ce009a44267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 10 May 2024 10:22:08 +0200 Subject: [PATCH] ovsdbapp: update to 2.6.0 Change-Id: I130fa479aacd2bda25a29208e58eca7bd22ec01b --- ...prove-compatibility-with-netaddr-1.x.patch | 45 +++++++++++++++++++ openstack/ovsdbapp/ovsdbapp.spec.j2 | 4 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 openstack/ovsdbapp/0001-Improve-compatibility-with-netaddr-1.x.patch diff --git a/openstack/ovsdbapp/0001-Improve-compatibility-with-netaddr-1.x.patch b/openstack/ovsdbapp/0001-Improve-compatibility-with-netaddr-1.x.patch new file mode 100644 index 000000000..8265091e1 --- /dev/null +++ b/openstack/ovsdbapp/0001-Improve-compatibility-with-netaddr-1.x.patch @@ -0,0 +1,45 @@ +From f45ee765f95260b53c2d3783daaff9d76b8c590b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dirk=20M=C3=BCller?= +Date: Fri, 10 May 2024 10:19:00 +0200 +Subject: [PATCH] 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 +--- + ovsdbapp/utils.py | 2 +- + requirements.txt | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ovsdbapp/utils.py b/ovsdbapp/utils.py +index 22338f7..fb892f1 100644 +--- a/ovsdbapp/utils.py ++++ b/ovsdbapp/utils.py +@@ -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): +diff --git a/requirements.txt b/requirements.txt +index 778430d..b15760c 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -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 +-- +2.44.0 + diff --git a/openstack/ovsdbapp/ovsdbapp.spec.j2 b/openstack/ovsdbapp/ovsdbapp.spec.j2 index a0cbb5707..39cd06aa1 100644 --- a/openstack/ovsdbapp/ovsdbapp.spec.j2 +++ b/openstack/ovsdbapp/ovsdbapp.spec.j2 @@ -1,6 +1,6 @@ %define with_tests 1 {% set pypi_name = 'ovsdbapp' %} -{% set upstream_version = upstream_version('2.5.0') %} +{% set upstream_version = upstream_version('2.6.0') %} {% set rpm_release = '1' %} {% set source = url_pypi() %} Name: {{ py2name() }} @@ -11,6 +11,8 @@ License: {{ license('Apache-2.0') }} Group: Development/Languages/Python URL: https://docs.openstack.org/{{ pypi_name }} Source0: {{ source }} +# https://review.opendev.org/c/openstack/ovsdbapp/+/918970 +Patch1: 0001-Improve-compatibility-with-netaddr-1.x.patch BuildRequires: openstack-macros BuildRequires: {{ py3('fixtures') }} BuildRequires: {{ py3('netaddr') }}