diff options
author | Viktor Tikkanen <viktor.tikkanen@nokia.com> | 2016-01-07 11:59:02 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-01-11 13:44:52 +0000 |
commit | 69a7887f4eb8c931628442ab0a4d3fb298667f8e (patch) | |
tree | b1b87026b49ef9d257fd3a8eb2bb44ecfd88e81b /testcases/functest_utils.py | |
parent | 970ee3eb202a5986b2da918ef034d1a1aba4520a (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>
(cherry picked from commit 378c1baeecdd66ea8c74f1046e2e54297d9f204d)
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 |