summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-01-29 01:39:58 +0000
committerCédric Ollivier <cedric.ollivier@orange.com>2018-01-29 18:05:25 +0100
commit488d5c8496fb7c8259a9aeef9f2ad6d437f3aeae (patch)
tree3f0d59e3ae4f516bc3b3020a3f49f7facaa443b3
parenteccd2461a9272191b1baa312624158de8da84fc9 (diff)
Create subnet and net within the same project
It is required to create a network and subnet within the same project for some SUTs. Change-Id: Icd02edb0aebee93713f315cdbbeb021e9ae82dae Signed-off-by: Linda Wang <wangwulin@huawei.com> (cherry picked from commit f06d3e13cdee669e53f6a1c75039c9b3c3430a8a)
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py
index f4b77936a..fed4c7ca8 100644
--- a/functest/opnfv_tests/openstack/tempest/tempest.py
+++ b/functest/opnfv_tests/openstack/tempest/tempest.py
@@ -371,6 +371,7 @@ class TempestResourcesManager(object):
subnet_settings=[SubnetSettings(
name=CONST.__getattribute__(
'tempest_private_subnet_name') + self.guid,
+ project_name=project_name,
cidr=CONST.__getattribute__('tempest_private_subnet_cidr'))
]))
if network_creator is None or network_creator.get_network() is None: