NSX|v3: Fix create network exception handling

Init is_overlay_network variable used in the excpection handling
in case it happend before it is set.

Change-Id: Ia817e933b4676c47aec82ab72bfc2a0caa695d39
This commit is contained in:
Adit Sarfaty 2017-11-22 14:06:53 +02:00
parent f036f5a988
commit ba05c0ddda
1 changed files with 1 additions and 0 deletions

View File

@ -973,6 +973,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
net_data = network['network']
external = net_data.get(extnet_apidef.EXTERNAL)
is_backend_network = False
is_overlay_network = False
tenant_id = net_data['tenant_id']
# validate the availability zone, and get the AZ object