We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a80d5cd + 6cd92e3 commit acb98acCopy full SHA for acb98ac
neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py
@@ -693,8 +693,10 @@ def __init__(self, driver):
693
self.event_name = 'HAChassisGroupRouterEvent'
694
695
def match_fn(self, event, row, old):
696
- if (ovn_const.OVN_ROUTER_ID_EXT_ID_KEY in row.external_ids or
697
- hasattr(old, 'ha_chassis')):
+ if ovn_const.OVN_ROUTER_ID_EXT_ID_KEY not in row.external_ids:
+ # This is not a router "HA_Chassis_Group".
698
+ return False
699
+ if hasattr(old, 'ha_chassis'):
700
# "HA_Chassis_Group" has been assigned to a router or there are
701
# changes in the "ha_chassis" list.
702
return True
0 commit comments