neutron/neutron/services/ovn_l3
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
..
__init__.py [OVN] Import OVN Client, L3 and QoS related code 2019-12-14 19:17:40 +00:00
exceptions.py [OVN] Allow use of ovn-sync mechanism driver 2020-07-01 08:57:33 +02:00
plugin.py [OVN] Prevent deleting the only IP of a router port 2022-01-04 16:31:30 +01:00