neutron/neutron
Arnau Verdaguer fb3f92fcd0 [OVN] Prevent deleting the only IP of a router port
Neutron allows deleting the only IP of a router port but
the OVN NB DB doesn't, since it expects that the
network value of a port is greater than 0. This should
not be possible since it causes that the DB are not
perfectly sync.

It is needed to check BEFORE_UPDATE if the port
that will be updated is of type router owned and
if it will have an IP after the update. If not
an error needs to be raised.

Compared to master patch, this has changed payload to kwargs
Conflicts:
    neutron/services/ovn_l3/plugin.py

Closes-Bug: #1948457
Change-Id: I206c31201470f178efdde8839622be7900c6ae3e
(cherry picked from commit 935c88032b)
2022-01-04 16:31:30 +01:00
..
agent Merge "Do not announce any DNS resolver if "0.0.0.0" or "::" provided" into stable/victoria 2021-12-21 23:52:33 +00:00
api Don't use singleton in routes.middleware.RoutesMiddleware 2021-09-07 06:09:26 +00:00
cmd Added common config and SR-IOV agent config to sanity check 2021-06-11 14:41:50 +00:00
common Do not announce any DNS resolver if "0.0.0.0" or "::" provided 2021-12-20 09:42:53 +00:00
conf Make default hypervisor hostname compatible with libvirt 2021-06-17 13:15:30 +00:00
core_extensions Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
db Don't fail subnet validation if gw_ip is actually not changed 2021-12-21 16:50:36 +01:00
debug Fix neutron debug probe to use integration_bridge 2020-03-31 11:17:47 +00:00
extensions Add source_ip_prefix and destination_ip_prefix to metering label rules 2020-09-30 12:26:01 +00:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam Bump pylint version to support python 3.8 2020-08-06 16:00:30 +02:00
locale Imported Translations from Zanata 2020-05-03 07:38:11 +00:00
notifiers [OVS] Fix live-migration connection disruption 2021-06-11 15:17:29 +00:00
objects Implement "IPAllocation" router ports allocated retrieval 2021-12-21 16:50:31 +01:00
pecan_wsgi Remove "six" library 2020-07-28 16:55:52 +00:00
plugins Check subnet in "_remove_subnet_dhcp_options" 2021-12-23 15:21:45 +00:00
privileged Check a namespace existence by checking only its own directory 2021-11-03 14:14:11 +00:00
profiling Remove "six" library 2020-07-28 16:55:52 +00:00
quota Remove "six" library 2020-07-28 16:55:52 +00:00
scheduler Do not fail if the agent load is not bumped 2021-08-30 13:07:13 +00:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
services [OVN] Prevent deleting the only IP of a router port 2022-01-04 16:31:30 +01:00
tests [OVN] Prevent deleting the only IP of a router port 2022-01-04 16:31:30 +01:00
__init__.py Remove usage of six.PY2 2020-05-22 12:59:01 -04:00
_i18n.py
auth.py
manager.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
neutron_plugin_base_v2.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-14 14:01:13 +00:00
policy.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00