Ensure cr-lrp ports are exposed

Even if expose_tenant_networks is not enabled, cr-lrp IPs must
be exposed

Closes-Bug: #2068028

Change-Id: Ibcffbad5204bfbc1a42c157755ac9ae9d7b67766
(cherry picked from commit d24d6fbf9f)
This commit is contained in:
Luis Tomas Bolivar 2024-06-04 13:47:06 +02:00
parent 47c18ffaa4
commit 1920102b15

View File

@ -151,7 +151,9 @@ class NBOVNBGPDriver(driver_api.AgentDriverBase):
watcher.OVNLBCreateEvent(self),
watcher.OVNLBDeleteEvent(self),
watcher.OVNPFCreateEvent(self),
watcher.OVNPFDeleteEvent(self)}
watcher.OVNPFDeleteEvent(self),
watcher.ChassisRedirectCreateEvent(self),
watcher.ChassisRedirectDeleteEvent(self)}
if CONF.exposing_method == constants.EXPOSE_METHOD_VRF:
# For vrf we require more information on the logical_switch
@ -161,9 +163,7 @@ class NBOVNBGPDriver(driver_api.AgentDriverBase):
events.add(watcher.LocalnetCreateDeleteEvent(self))
if self._expose_tenant_networks:
events.update({watcher.ChassisRedirectCreateEvent(self),
watcher.ChassisRedirectDeleteEvent(self),
watcher.LogicalSwitchPortSubnetAttachEvent(self),
events.update({watcher.LogicalSwitchPortSubnetAttachEvent(self),
watcher.LogicalSwitchPortSubnetDetachEvent(self)})
if CONF.advertisement_method_tenant_networks == 'host':
events.update({