Merge "Add extra debug log with current and new port statuses in ML2 plugin"

This commit is contained in:
Zuul 2022-01-10 11:05:27 +00:00 committed by Gerrit Code Review
commit 52c4678201

View File

@ -2210,6 +2210,8 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
updated = False updated = False
network = None network = None
port_id = port.id port_id = port.id
LOG.debug("Current status of the port %s is: %s; "
"New status is: %s", port_id, port.status, status)
if ((port.status != status and if ((port.status != status and
port['device_owner'] != const.DEVICE_OWNER_DVR_INTERFACE) or port['device_owner'] != const.DEVICE_OWNER_DVR_INTERFACE) or
port['device_owner'] == const.DEVICE_OWNER_DVR_INTERFACE): port['device_owner'] == const.DEVICE_OWNER_DVR_INTERFACE):