tempest: Make _create_router_with_client obey enable_snat=False

Found while working on I4452d61ee6e9d21add3d37ec39301efcbd3bd66d

Closes-Bug: #1699006
Change-Id: Ideb3e57b068dce150e333fde66f7ad488c2b515d
(cherry picked from commit bd998d111e)
This commit is contained in:
YAMAMOTO Takashi 2017-06-20 12:49:30 +09:00
parent 6f1e3fef17
commit 7299b2f566
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class BaseNetworkTest(test.BaseTestCase):
ext_gw_info = {}
if external_network_id:
ext_gw_info['network_id'] = external_network_id
if enable_snat:
if enable_snat is not None:
ext_gw_info['enable_snat'] = enable_snat
body = cls.client.create_router(
router_name, external_gateway_info=ext_gw_info,