Create subnet and net within the same project 77/51277/1
authorLinda Wang <wangwulin@huawei.com>
Mon, 29 Jan 2018 01:39:58 +0000 (01:39 +0000)
committerLinda Wang <wangwulin@huawei.com>
Mon, 29 Jan 2018 01:39:58 +0000 (01:39 +0000)
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>
functest/opnfv_tests/openstack/tempest/tempest.py

index 5481b13..4361784 100644 (file)
@@ -389,6 +389,7 @@ class TempestResourcesManager(object):
                 subnet_settings=[SubnetConfig(
                     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: