Files
neutron/doc
Rodolfo Alonso Hernandez 197c920cdb [OVN] Set always the GW LRP "gateway_mtu" option
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 commit d080b35782)

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 commit db03074927)
(cherry picked from commit 2489d8009e)
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
2025-09-29 19:03:41 -04:00
..
2024-05-21 13:17:36 -04:00