NSX|V3: enable creation of provider VLAN network

Ensure that the network creation succeeds. A exception for metadata
proxy port creation was failing due to the fact that this was on
a different transfport zone.

Change-Id: Ie1bc834838fdd6e43407788fda4fdb939f22b3d6
(cherry picked from commit 5451d47d19)
This commit is contained in:
Gary Kotton 2017-06-25 22:36:14 -07:00 committed by garyk
parent 4004103c06
commit be4a27e84f
1 changed files with 3 additions and 1 deletions

View File

@ -822,7 +822,9 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
nsx_net_id)
rollback_network = True
if is_backend_network and cfg.CONF.nsx_v3.native_dhcp_metadata:
if (is_backend_network and
cfg.CONF.nsx_v3.native_dhcp_metadata and
self._is_overlay_network(context, created_net['id'])):
# Enable native metadata proxy for this network.
tags = self.nsxlib.build_v3_tags_payload(
net_data, resource_type='os-neutron-net-id',