Merge "Add ChassisPrivateCreateEvent to the events"

This commit is contained in:
Zuul 2023-03-15 16:36:49 +00:00 committed by Gerrit Code Review
commit 097334aa74
2 changed files with 6 additions and 2 deletions

View File

@ -122,6 +122,7 @@ class OVNBGPDriver(driver_api.AgentDriverBase):
tables=OVN_TABLES + ["Chassis_Private"],
events=events).start()
except AssertionError:
events.remove("ChassisPrivateCreateEvent")
self.sb_idl = ovn.OvnSbIdl(
self.ovn_remote,
chassis=self.chassis,
@ -137,7 +138,8 @@ class OVNBGPDriver(driver_api.AgentDriverBase):
"FIPSetEvent",
"FIPUnsetEvent",
"OVNLBMemberCreateDeleteEvent",
"ChassisCreateEvent"])
"ChassisCreateEvent",
"ChassisPrivateCreateEvent"])
if self._expose_tenant_networks:
events.update(["SubnetRouterAttachedEvent",
"SubnetRouterDetachedEvent",

View File

@ -87,6 +87,7 @@ class OVNEVPNDriver(driver_api.AgentDriverBase):
tables=OVN_TABLES + ["Chassis_Private"],
events=events).start()
except AssertionError:
events.remove("ChassisPrivateCreateEvent")
self.sb_idl = ovn.OvnSbIdl(
self.ovn_remote,
chassis=self.chassis,
@ -103,7 +104,8 @@ class OVNEVPNDriver(driver_api.AgentDriverBase):
"SubnetRouterDetachedEvent",
"TenantPortCreatedEvent",
"TenantPortDeletedEvent",
"ChassisCreateEvent"])
"ChassisCreateEvent",
"ChassisPrivateCreateEvent"])
return events
@lockutils.synchronized('evpn')