NSX-V3 Use admin context for VPN port creation

Change-Id: I4d4c0df44a95bc4c263667d2809ff85ccacfc016
This commit is contained in:
Adit Sarfaty 2018-04-05 11:21:59 +03:00
parent 9ce4e29a3e
commit dc1d46dca2
1 changed files with 1 additions and 1 deletions

View File

@ -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