From dc1d46dca297ab700e688c61b1ec4cd1f831d643 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Thu, 5 Apr 2018 11:21:59 +0300 Subject: [PATCH] NSX-V3 Use admin context for VPN port creation Change-Id: I4d4c0df44a95bc4c263667d2809ff85ccacfc016 --- vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py b/vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py index f2a7a67fce..109d2d58d0 100644 --- a/vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py +++ b/vmware_nsx/services/vpnaas/nsxv3/ipsec_driver.py @@ -749,7 +749,7 @@ class NSXv3IPsecVpnDriver(service_drivers.VpnDriver): try: self.validator.validate_vpnservice(context, vpnservice) local_address = self._get_service_local_address( - context, vpnservice) + context.elevated(), vpnservice) except Exception: with excutils.save_and_reraise_exception(): # Rolling back change on the neutron