When network's MTU is changed, Neutron sends notification about it
to the L3 agents. In case of DVR (and DVR HA) MTU is then changed in
the qrouter- namespace but should be also changed on snat interfaces
in the snat namespace. And that part was missing.
This patch adds special implementation of the internal_network_updated()
method in the DvrEdgeRouter class so it can configure MTU also for
in the snat namespace.
This patch also removed passing attributes "interface_name",
"ip_cidrs" and "mtu" to the internal_network_updated() method and adds
"port" dict to be passed there. It is consistent with what is already
done in e.g. internal_network_added() method and "port" dict is actually
necessary to configure properly snat internal interface in the snat
namespace.
This patch adds also functional test of update network mtu for all types
of routers as there was no such test at all.
There is additional issue with DVR-HA which isn't fixed with that patch
and for which follow up will be proposed. Because of that this patch is
marked as partial fix for the related bug.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/812950 /opendev. org/openstack/ neutron/ commit/ 763a65d9637c955 a828edceec416c6 c58744ff50
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit 763a65d9637c955 a828edceec416c6 c58744ff50
Author: Slawek Kaplonski <email address hidden>
Date: Fri Jul 2 17:55:26 2021 +0200
[DVR] Fix update of the MTU in the SNAT namespace
When network's MTU is changed, Neutron sends notification about it
to the L3 agents. In case of DVR (and DVR HA) MTU is then changed in
the qrouter- namespace but should be also changed on snat interfaces
in the snat namespace. And that part was missing.
This patch adds special implementation of the internal_ network_ updated( )
method in the DvrEdgeRouter class so it can configure MTU also for
in the snat namespace.
This patch also removed passing attributes "interface_name", network_ updated( ) method and adds network_ added() method and "port" dict is actually
"ip_cidrs" and "mtu" to the internal_
"port" dict to be passed there. It is consistent with what is already
done in e.g. internal_
necessary to configure properly snat internal interface in the snat
namespace.
This patch adds also functional test of update network mtu for all types
of routers as there was no such test at all.
There is additional issue with DVR-HA which isn't fixed with that patch
and for which follow up will be proposed. Because of that this patch is
marked as partial fix for the related bug.
Conflicts:
neutron/ tests/functiona l/agent/ l3/test_ dvr_router. py
Related-Bug: #1933273 56ea9a563fead9f f2de8464971 7405a55d66c7042 a49ec72214)
Change-Id: I200acfcaaae7f0
(cherry picked from commit b5dd6efdca0aa6e