Merge "NSX|V: Ignore empty gw info on router creation"

This commit is contained in:
Zuul 2017-11-19 16:24:28 +00:00 committed by Gerrit Code Review
commit f3be70b53b
1 changed files with 1 additions and 1 deletions

View File

@ -3054,7 +3054,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
context, lrouter,
allow_metadata=(allow_metadata and
self.metadata_proxy_handler))
if gw_info != constants.ATTR_NOT_SPECIFIED and gw_info is not None:
if gw_info != constants.ATTR_NOT_SPECIFIED and gw_info:
self._update_router_gw_info(
context, lrouter['id'], gw_info)
except Exception: