From 2f5447923c253b6c482f0de8fa52fb19cb4c9db8 Mon Sep 17 00:00:00 2001 From: Roey Chen Date: Thu, 10 Aug 2017 03:36:12 -0700 Subject: [PATCH] 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 --- vmware_nsx/shell/admin/plugins/nsxv/resources/gw_edges.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmware_nsx/shell/admin/plugins/nsxv/resources/gw_edges.py b/vmware_nsx/shell/admin/plugins/nsxv/resources/gw_edges.py index 29c507d233..38d0367ba0 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv/resources/gw_edges.py +++ b/vmware_nsx/shell/admin/plugins/nsxv/resources/gw_edges.py @@ -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')