diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-12-12 01:02:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-12 01:02:06 +0000 |
commit | 9f41633bed117341fe542433ea869bba14011e9f (patch) | |
tree | 65ff2c60fbc1f39e550ddb43beec022e9d09aa2b /functest/opnfv_tests/openstack/vping/vping_base.py | |
parent | 00315cbac45bdffe0cfd3174a4b0871ccb610b97 (diff) | |
parent | 5b735d134a68d9fe2d9ed1d4482686cef9d38873 (diff) |
Merge "Set the ram of flavor 1024"
Diffstat (limited to 'functest/opnfv_tests/openstack/vping/vping_base.py')
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_base.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_base.py b/functest/opnfv_tests/openstack/vping/vping_base.py index f3d4d50f..df9774ec 100644 --- a/functest/opnfv_tests/openstack/vping/vping_base.py +++ b/functest/opnfv_tests/openstack/vping/vping_base.py @@ -156,12 +156,14 @@ class VPingBase(testcase.TestCase): "Creating flavor with name: '%s'", self.flavor_name) scenario = CONST.__getattribute__('DEPLOY_SCENARIO') flavor_metadata = None + flavor_ram = 512 if 'ovs' in scenario or 'fdio' in scenario: flavor_metadata = create_flavor.MEM_PAGE_SIZE_LARGE + flavor_ram = 1024 flavor_creator = OpenStackFlavor( self.os_creds, - FlavorConfig(name=self.flavor_name, ram=512, disk=1, vcpus=1, - metadata=flavor_metadata)) + FlavorConfig(name=self.flavor_name, ram=flavor_ram, disk=1, + vcpus=1, metadata=flavor_metadata)) flavor_creator.create() self.creators.append(flavor_creator) |