2fbfe3855ea59250bba1ff01f0d97ddfb46d2511
PortBindingUpdateVirtualPortsEvent` match filter
This patch improves the ``PortBindingUpdateVirtualPortsEvent`` match filter. These are the new conditions: * Event delete: that happens when the port binding has been deleted because the port is no longer bound or the port has been deleted. That will remove the Neutron port host name. NOTE: in case the Neutron port has been deleted, the method ``Ml2Plugin.update_virtual_port_host`` won't update (create) a new PortBinding object. * If the new register has virtual_parents but not the old one, that means the ovn-controller has received traffic with the VIP from this port. The port host ID must be set. * If the virtual parents have changed, the port host ID must be updated. * If the virtual parents have been removed, the port host ID must be removed too. Newer versions of OVN [1] are handling the virtual port binding in a different way. When the virtual parents are added or removed, the related "Port_Binding" register is deleted and the created again. This is why this new version includes the event "DELETE" on the match method; when the register is deleted, the event class considers that the port is no longer bound to a host and removes the host name for the Neutron port. [1]https://review.opendev.org/c/openstack/neutron/+/880890/ Change-Id: I34caf7d0212ccb4bd7259c4414e7c3994bd8da4d
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:
https://docs.openstack.org/neutron/latest/contributor/contributing.html
Get in touch via email. Use [Neutron] in your subject.
Description
Languages
Python
99.7%
Shell
0.3%