diff options
author | Viktor Tikkanen <viktor.tikkanen@nokia.com> | 2016-01-07 11:59:02 +0200 |
---|---|---|
committer | Viktor Tikkanen <viktor.tikkanen@nokia.com> | 2016-01-07 12:05:13 +0200 |
commit | 378c1baeecdd66ea8c74f1046e2e54297d9f204d (patch) | |
tree | ecf7b61b645f67d91f711ccacb233d3b9f2fae15 /testcases/functest_utils.py | |
parent | 367f8f2ab9fccbd9ce0566598ef00cad745a296a (diff) |
Searching for shared private networks
Tempest suite assumes that there is at least one shared private
network in the system. get_private_net() returns now first found
shared private network (instead of first found private network).
Change-Id: I892abcacff2c0349dd42444a632f71c6a14a0861
Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r-- | testcases/functest_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py index 682c33ee3..0734ccbde 100644 --- a/testcases/functest_utils.py +++ b/testcases/functest_utils.py @@ -346,12 +346,12 @@ def update_cinder_quota(cinder_client, tenant_id, vols_quota, snapshots_quota,gi return False def get_private_net(neutron_client): - # Checks if there is an existing private network + # Checks if there is an existing shared private network networks = neutron_client.list_networks()['networks'] if len(networks) == 0: return None for net in networks: - if net['router:external'] == False: + if (net['router:external'] == False) and (net['shared'] == True): return net return None |