From: Salvatore Orlando Date: Thu, 14 Mar 2013 10:25:52 +0000 (+0100) Subject: NVP metadata access - create elevated context once X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7f814639eff66cf82fff466cec766987dcd4b51e;p=openstack-build%2Fneutron-build.git 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 --- 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: