From 31167e9e650b4019613cf730cc62b93cf008a704 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 13 May 2025 16:44:11 -0500 Subject: [PATCH] chore(neutron): add a debug log when a port is created Add a debug log entry into the mechanism driver when we react on port creation. --- .../neutron_understack/neutron_understack_mech.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/neutron-understack/neutron_understack/neutron_understack_mech.py b/python/neutron-understack/neutron_understack/neutron_understack_mech.py index f6ee0e787..4f8fb86a1 100644 --- a/python/neutron-understack/neutron_understack/neutron_understack_mech.py +++ b/python/neutron-understack/neutron_understack/neutron_understack_mech.py @@ -236,6 +236,13 @@ def create_port_precommit(self, context: PortContext): def create_port_postcommit(self, context: PortContext) -> None: # Provide network node(s) with connectivity to the networks where this # router port is attached to. + # + port = context.current + LOG.debug( + "Created port %(port)s on network %(net)s", + {"port": port["id"], "net": port["network_id"]}, + ) + if utils.is_router_interface(context): routers.create_port_postcommit(context)