In some cases, the arp entry of snat port is not updated
in qrouter namespace. l3-agent calls get_ports_by_subnet()
while setting arps for the subnet. And the snat port is
not returned if it is still unbound. One of the scenario
this is observed is when router is created, external
gateway set and internal subnet attached to router in
quick succession.
This patch retrieves snat port details from router info
as well and updates arp entry for snat port.
Closes-Bug: #1933092
Change-Id: I7ee797b4b930306cf6360922d855f8b24f1b813d
(cherry picked from commit be7d0bb6abc893e53dfc864c52506928b1d38fa3)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/799375 /opendev. org/openstack/ neutron/ commit/ 85a668dd1629d71 f52ff20da3d848e 2cbb397e43
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 85a668dd1629d71 f52ff20da3d848e 2cbb397e43
Author: Hemanth Nakkina <email address hidden>
Date: Fri Jul 2 17:01:55 2021 +0530
Update arp entry of snat port on qrouter ns
In some cases, the arp entry of snat port is not updated by_subnet( )
in qrouter namespace. l3-agent calls get_ports_
while setting arps for the subnet. And the snat port is
not returned if it is still unbound. One of the scenario
this is observed is when router is created, external
gateway set and internal subnet attached to router in
quick succession.
This patch retrieves snat port details from router info
as well and updates arp entry for snat port.
Closes-Bug: #1933092 6cf6360922d855f 8b24f1b813d 53dfc864c525069 28b1d38fa3)
Change-Id: I7ee797b4b93030
(cherry picked from commit be7d0bb6abc893e