Merge "Use tenant context to get router GW network"

This commit is contained in:
Zuul 2018-11-25 07:43:17 +00:00 committed by Gerrit Code Review
commit 07f7c0716b

View File

@ -320,7 +320,7 @@ class NsxPluginBase(db_base_plugin_v2.NeutronDbPluginV2,
network_id = (gw_info.get('network_id') if gw_info
else None)
if network_id:
ext_net = self._get_network(context.elevated(), network_id)
ext_net = self._get_network(context, network_id)
if not ext_net.external:
msg = (_("Network '%s' is not a valid external network") %
network_id)