NSXv: Adding notification for router GW port update
Change-Id: I3a4975f0256acbe0fb6e8fe45a1e4280462d993b
This commit is contained in:
parent
60d7c01c75
commit
afec7c5649
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user