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:
parent
7bcd7d009f
commit
2f5447923c
@ -175,6 +175,8 @@ def create_bgp_gw(resource, event, trigger, **kwargs):
|
|||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
return
|
return
|
||||||
default_gw = default_gw[1]
|
default_gw = default_gw[1]
|
||||||
|
else:
|
||||||
|
default_gw = None
|
||||||
|
|
||||||
config.register_nsxv_azs(cfg.CONF, cfg.CONF.nsxv.availability_zones)
|
config.register_nsxv_azs(cfg.CONF, cfg.CONF.nsxv.availability_zones)
|
||||||
az_hint = properties.get('az-hint', 'default')
|
az_hint = properties.get('az-hint', 'default')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user