From f6291a20ac9a305f9ff7c46ed9dd81f10fa08f76 Mon Sep 17 00:00:00 2001 From: OpenStack Release Bot Date: Thu, 6 Mar 2025 09:16:50 +0000 Subject: [PATCH 1/3] Update .gitreview for stable/2025.1 Change-Id: Id3fffca1c74778ae69ba99ca23d70f03d9aec9a7 --- .gitreview | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitreview b/.gitreview index faf5d1f5b..83ec4a24f 100644 --- a/.gitreview +++ b/.gitreview @@ -2,3 +2,4 @@ host=review.opendev.org port=29418 project=openstack/python-neutronclient.git +defaultbranch=stable/2025.1 From 5f7de3d9883d3a08cd97b88c7713328030413371 Mon Sep 17 00:00:00 2001 From: OpenStack Release Bot Date: Thu, 6 Mar 2025 09:16:52 +0000 Subject: [PATCH 2/3] Update TOX_CONSTRAINTS_FILE for stable/2025.1 Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/2025.1 branch, tests will continue to use the upper-constraints list on master. Change-Id: Ie2963594c4165459b8415b19d2a5c0d35309e2ca --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index a939f8b65..1df903876 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ setenv = VIRTUAL_ENV={envdir} LC_ALL=C PYTHONWARNINGS=default::DeprecationWarning usedevelop = True -deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} +deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt # Delete bytecodes from normal directories before running tests. @@ -46,7 +46,7 @@ commands = [testenv:docs] deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html @@ -60,7 +60,7 @@ commands = [testenv:releasenotes] deps = - -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2025.1} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html From 77e4e015b170752ed202959bcfa70c6fed3ae969 Mon Sep 17 00:00:00 2001 From: Rajashekar Reddy Uppala Date: Thu, 18 Dec 2025 12:09:14 -0500 Subject: [PATCH 3/3] v2_0: Use 'bindings' when listing port bindings This commit fixes a bug in v2_0 client's "list_port_bindings" function, where it uses "port_bindings" to access Neutron's response, instead of "bindings" [0]. [0]: https://docs.openstack.org/api-ref/network/v2/index.html#show-port-binding-of-a-port Closes-Bug: #2130459 Change-Id: I32ef753ec212b55f698e3844e043f68b22992ead Signed-off-by: Zhan Zhang (cherry picked from commit 8f72d77812f9eb9aa1b3e28c09d378608908caa0) Signed-off-by: Rajashekar Reddy Uppala --- neutronclient/v2_0/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutronclient/v2_0/client.py b/neutronclient/v2_0/client.py index de0529182..9f2e24945 100644 --- a/neutronclient/v2_0/client.py +++ b/neutronclient/v2_0/client.py @@ -847,7 +847,7 @@ def show_port_binding(self, port_id, host_id, **_params): def list_port_bindings(self, port_id, retrieve_all=True, **_params): """Fetches a list of all bindings for a certain port.""" - return self.list('port_bindings', self.port_bindings_path % port_id, + return self.list('bindings', self.port_bindings_path % port_id, retrieve_all, **_params) def activate_port_binding(self, port_id, host_id):