NSX|V: add missing contexts
Commit fe72c1bd0c
changed the API.
This adds missing contexts.
Change-Id: I941647dbaa5857a9ef654f0bc4ace5b74c8a85e4
This commit is contained in:
parent
ba03d6c9a4
commit
954feb1f6f
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user