Skip to content

Commit 1bab355

Browse files
authored
Merge pull request #928 from rackerlabs/port-adjustments
chore(neutron): add a debug log when a port is created
2 parents 5b37dad + 31167e9 commit 1bab355

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/neutron-understack/neutron_understack/neutron_understack_mech.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ def create_port_precommit(self, context: PortContext):
236236
def create_port_postcommit(self, context: PortContext) -> None:
237237
# Provide network node(s) with connectivity to the networks where this
238238
# router port is attached to.
239+
#
240+
port = context.current
241+
LOG.debug(
242+
"Created port %(port)s on network %(net)s",
243+
{"port": port["id"], "net": port["network_id"]},
244+
)
245+
239246
if utils.is_router_interface(context):
240247
routers.create_port_postcommit(context)
241248

0 commit comments

Comments
 (0)