From 7f814639eff66cf82fff466cec766987dcd4b51e Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Thu, 14 Mar 2013 11:25:52 +0100 Subject: [PATCH] NVP metadata access - create elevated context once Bug 1155051 This is a follow-up patch which fixes a problem with elevated context not being passed to subroutines. Change-Id: Ic270d8e48075b6b58117970ab870c3fb3962d93b --- .../nicira/nicira_nvp_plugin/common/metadata_access.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/plugins/nicira/nicira_nvp_plugin/common/metadata_access.py b/quantum/plugins/nicira/nicira_nvp_plugin/common/metadata_access.py index 7ac19c08b..94d79b163 100644 --- a/quantum/plugins/nicira/nicira_nvp_plugin/common/metadata_access.py +++ b/quantum/plugins/nicira/nicira_nvp_plugin/common/metadata_access.py @@ -128,11 +128,11 @@ class NvpMetadataAccess(object): if ports: if (do_create and not self._find_metadata_port(ctx_elevated, ports)): - self._create_metadata_access_network(context, + self._create_metadata_access_network(ctx_elevated, router_id) elif len(ports) == 1: # The only port left is the metadata port - self._destroy_metadata_access_network(context, + self._destroy_metadata_access_network(ctx_elevated, router_id, ports) else: -- 2.45.2