NSXAdmin: Fix nsx-v gw-edge deploy witho no default-gw

Change I97e00b0f17b8a2bb411b27f73e4a1c325c244314 fixes the default
gateway setting when deploying a gw-edge, however it also introduced a
bug where user can't deploy the edge without default-gateway.

Change-Id: I56216ffa0ea64f8d2a8cc648a645ce1e90ab26ba
This commit is contained in:
Roey Chen 2017-08-10 03:36:12 -07:00
parent 7bcd7d009f
commit 2f5447923c

View File

@ -175,6 +175,8 @@ def create_bgp_gw(resource, event, trigger, **kwargs):
LOG.error(msg)
return
default_gw = default_gw[1]
else:
default_gw = None
config.register_nsxv_azs(cfg.CONF, cfg.CONF.nsxv.availability_zones)
az_hint = properties.get('az-hint', 'default')