Add extra logs to the network update callback in L3 agent

It may be useful during debugging some L3 and events related issues.

Related-bug: #1933234
Change-Id: I4bcba0ae82d99fac962d758b48b1727f344ec7bb
(cherry picked from commit 5c9a7fe1b4)
(cherry picked from commit 25f4864d12)
(cherry picked from commit 7de9aa109a)
(cherry picked from commit 5dfd2e5615)
(cherry picked from commit 85c33d4ec9)
This commit is contained in:
Slawek Kaplonski 2021-06-29 13:39:22 +02:00
parent 7f63139424
commit 7aab77d208
1 changed files with 3 additions and 0 deletions

View File

@ -516,7 +516,10 @@ class L3NATAgent(ha.AgentMixin,
def network_update(self, context, **kwargs):
network_id = kwargs['network']['id']
LOG.debug("Got network %s update", network_id)
for ri in self.router_info.values():
LOG.debug("Checking if router %s is plugged to the network %s",
ri, network_id)
ports = list(ri.internal_ports)
if ri.ex_gw_port:
ports.append(ri.ex_gw_port)