Merge "Notify ROUTER_GATEWAY event for router gw mode"

This commit is contained in:
Zuul
2021-07-29 17:54:06 +00:00
committed by Gerrit Code Review

View File

@@ -64,7 +64,8 @@ class L3_NAT_dbonly_mixin(l3_db.L3_NAT_dbonly_mixin):
router.enable_snat = self._get_enable_snat(info)
router_body = {l3_apidef.ROUTER:
{l3_apidef.EXTERNAL_GW_INFO: info}}
registry.publish(resources.ROUTER, events.PRECOMMIT_UPDATE, self,
registry.publish(resources.ROUTER_GATEWAY,
events.PRECOMMIT_UPDATE, self,
payload=events.DBEventPayload(
context, request_body=router_body,
states=(old_router,), resource_id=router_id,