From afec7c5649376a36ca41cbcc6921fb94fa12f5a1 Mon Sep 17 00:00:00 2001 From: Roey Chen Date: Thu, 13 Apr 2017 08:17:06 -0700 Subject: [PATCH] NSXv: Adding notification for router GW port update Change-Id: I3a4975f0256acbe0fb6e8fe45a1e4280462d993b --- vmware_nsx/plugins/nsx_v/plugin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index 8a82b7b4c2..99bcff62d6 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -3156,11 +3156,20 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin, since the actual backend work was already done by the router driver, and it may cause a deadlock. """ + port_data = {'fixed_ips': ext_ips} updated_port = super(NsxVPluginV2, self).update_port( context, router.gw_port['id'], {'port': port_data}) self._extension_manager.process_update_port( context, port_data, updated_port) + registry.notify(resources.ROUTER_GATEWAY, + events.AFTER_UPDATE, + self._update_current_gw_port, + context=context, + router_id=router_id, + router=router, + network_id=router.gw_port.network_id, + updated_port=updated_port) context.session.expire(router.gw_port) def _update_router_gw_info(self, context, router_id, info,