NSX|V: add missing contexts

Commit fe72c1bd0c changed the API.
This adds missing contexts.

Change-Id: I941647dbaa5857a9ef654f0bc4ace5b74c8a85e4
This commit is contained in:
Gary Kotton 2016-10-04 09:05:31 -07:00
parent ba03d6c9a4
commit 954feb1f6f
2 changed files with 4 additions and 2 deletions

View File

@ -729,7 +729,8 @@ class EdgeManager(object):
# if there are still metadata ports on this edge - delete them now
metadata_proxy_handler = self.plugin.metadata_proxy_handler
if metadata_proxy_handler:
metadata_proxy_handler.cleanup_router_edge(router_id, warn=True)
metadata_proxy_handler.cleanup_router_edge(context, router_id,
warn=True)
self._free_edge_appliance(context, router_id)

View File

@ -111,7 +111,8 @@ def nsx_recreate_router_edge(resource, event, trigger, **kwargs):
router_id = router['id']
# clean up other objects related to this router
if plugin.metadata_proxy_handler:
plugin.metadata_proxy_handler.cleanup_router_edge(router_id)
plugin.metadata_proxy_handler.cleanup_router_edge(
context, router_id)
# attach the router to a new edge
appliance_size = router.get(routersize.ROUTER_SIZE)