[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user