5e32dddc11

When a subnet does not have DHCP configured, the metadata port does not have an IP address on this CIDR. The method "OvnNbSynchronizer.sync_networks_ports_and_dhcp_opts", was always setting an IP address for the metadata ports, regardless of the subnet configuration (with or without DHCP). The method "_sync_metadata_ports", in charge of synchronizing the metadata ports, now filters the subnets by the parameter "enable_dhcp". In case of having a subnet with DHCP enabled, if the metadata port is missing the subnet IP addresses, the method adds them. In case of having a subnet without DHCP enabled, if the metadata port has an IP address on the subnet, the method removes it. Closes-Bug: #1939726 Change-Id: I09cc14dff6933aae63cbd43a29f9221f405ecede
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
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute, please read the CONTRIBUTING.rst file.
Description
Languages
Python
99.7%
Shell
0.3%