[ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

Sometimes when creating ports, the status of logical_switch_port
changes from [] to [true]. we should be able to deal with this
situation and ensure that the port is in the active state in neutron.

Closes-bug: #1983530

Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3
This commit is contained in:
zhouhenglc
2022-08-04 08:47:10 +08:00
parent b7fad3dd35
commit e0039371f8

View File

@@ -484,7 +484,7 @@ class LogicalSwitchPortUpdateUpEvent(row_event.RowEvent):
events = (self.ROW_UPDATE,)
super(LogicalSwitchPortUpdateUpEvent, self).__init__(
events, table, (('up', '=', True),),
old_conditions=(('up', '=', False),))
old_conditions=(('up', '!=', True),))
self.event_name = 'LogicalSwitchPortUpdateUpEvent'
def run(self, event, row, old):