197c920cdb75418fa4072e1e175789a61eaab804
NOTE: stable/2024.2 only, as this is a combination of two commits in one to not introduce a regression by doing them separately. There were small changes required to unit tests as the code had changed in 2025.1 where this was originally merged. First commit: If the configuration option "ovn.ovn_emit_need_to_frag" is set, write always the "LSP.options.gateway_mtu" value, using the minimum MTU value of all networks connected to the router. That will limit the N/S traffic MTU regardless if the gateway network MTU is greater or less than the internal network MTU. Conflicts: neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_client.py neutron/tests/unit/services/ovn_l3/test_plugin.py (cherry picked from commitd080b35782) Second commit: Revert the network IDs filter in ``_gen_router_port_options`` In [1], a change in the ``network_ids`` filter was introduced. This filter is used to retrieve the networks belonging to a router. However this is used in two places: * To set the gateway MTU. Here all the networks attached to the router must be present. * To calculate the "redirect-type" value in the Logical_Router_Port. Only the internal interfaces must be present; the gateway port should be discarded. NOTE: patch [1] is present since 2025.1 (Epoxy). Conflicts: neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py [1]https://review.opendev.org/c/openstack/neutron/+/937026 Closes-Bug: #2105383 Related-Bug: #2032817 Change-Id: I9cd6e77e47ce16dcf2fc46fc076f1d7ee7a4f9d3 (cherry picked from commitdb03074927) (cherry picked from commit2489d8009e) Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
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%