From 7b61adbb4a0e3147e08e511cdf40a4073c00d099 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Thu, 16 Dec 2021 11:38:20 +0530 Subject: List ports when attempt to delete network with ports When there is attempt to delete network with ports, a general error message is displayed that one or more ports are in use on the network. This patch proposes to also return the ports which are in use as part of the message. Also modify test_delete_network_if_port_exists unit test to check for port id and network id in Error message. Also bump required version of neutron-lib to 2.18.0 as that's needed for custom message in NetworkInUse Exception. Depends-On: https://review.opendev.org/c/openstack/neutron-lib/+/821806 Closes-Bug: #1953716 Change-Id: Ib0b40402746c6a487a226b238907142384608d3c --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index 79eee84f8c..9b9551740a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ Jinja2>=2.10 # BSD License (3 clause) keystonemiddleware>=5.1.0 # Apache-2.0 netaddr>=0.7.18 # BSD netifaces>=0.10.4 # MIT -neutron-lib>=2.17.0 # Apache-2.0 +neutron-lib>=2.18.0 # Apache-2.0 python-neutronclient>=6.7.0 # Apache-2.0 tenacity>=6.0.0 # Apache-2.0 SQLAlchemy>=1.4.23 # MIT -- cgit v1.2.1