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.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/821935 /opendev. org/openstack/ neutron/ commit/ 7b61adbb4a0e314 7e08e511cdf40a4 073c00d099
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 7b61adbb4a0e314 7e08e511cdf40a4 073c00d099
Author: yatinkarel <email address hidden>
Date: Thu Dec 16 11:38:20 2021 +0530
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 487a226b2389071 42384608d3c
Change-Id: Ib0b40402746c6a