Merge "Move ``PortBindingChassisEvent`` checks to ``match_fn``" into stable/yoga
This commit is contained in:
commit
f6e47be8d1
|
@ -403,7 +403,7 @@ class PortBindingChassisEvent(row_event.RowEvent):
|
|||
events, table, (('type', '=', ovn_const.OVN_CHASSIS_REDIRECT),))
|
||||
self.event_name = 'PortBindingChassisEvent'
|
||||
|
||||
def run(self, event, row, old):
|
||||
def match_fn(self, event, row, old):
|
||||
if len(old._data) == 1 and 'external_ids' in old._data:
|
||||
# NOTE: since [1], the NB logical_router_port.external_ids are
|
||||
# copied into the SB port_binding.external_ids. If only the
|
||||
|
@ -412,10 +412,14 @@ class PortBindingChassisEvent(row_event.RowEvent):
|
|||
# SB update and therefore an infinite loop).
|
||||
# [1] https://www.mail-archive.com/ovs-dev@openvswitch.org/
|
||||
# msg62836.html
|
||||
return
|
||||
return False
|
||||
|
||||
if not utils.is_ovn_l3(self.l3_plugin):
|
||||
return
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
def run(self, event, row, old):
|
||||
router = host = None
|
||||
chassis = getattr(row, 'chassis', None)
|
||||
if chassis:
|
||||
|
|
Loading…
Reference in New Issue