diff options
author | spisarski <s.pisarski@cablelabs.com> | 2017-03-02 12:01:34 -0700 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2017-03-06 09:07:48 -0700 |
commit | 8a6c7a2be06f25f9c8c18a80b1b54c3b3be8b62a (patch) | |
tree | 7c9262d61dd6f4402f6938884168d78989cdcf6f /snaps/openstack/create_flavor.py | |
parent | badc81a7ff469e02303a729c7544216258d40239 (diff) |
Added the ability to give the tests the ability to add in flavor metadata.
NFVI's configured for OVS/DPDK and fd.io scenarios required special
metadata for flavors in order for VM instances to be activated. This
patch allows for setting a value to be applied to all tests. With
this change, the default value is being removed that only partially
addressed this issue.
JIRA: SNAPS-38
Change-Id: Ic42944a849f710f631fe7ac6fbefb720a73f0b77
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/create_flavor.py')
-rw-r--r-- | snaps/openstack/create_flavor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/snaps/openstack/create_flavor.py b/snaps/openstack/create_flavor.py index 68a7080..30271c1 100644 --- a/snaps/openstack/create_flavor.py +++ b/snaps/openstack/create_flavor.py @@ -22,7 +22,8 @@ __author__ = 'spisarski' logger = logging.getLogger('create_image') -DEFAULT_METADATA = {'hw:mem_page_size': 'any'} +MEM_PAGE_SIZE_ANY = {'hw:mem_page_size': 'any'} +MEM_PAGE_SIZE_LARGE = {'hw:mem_page_size': 'large'} class OpenStackFlavor: @@ -88,7 +89,7 @@ class FlavorSettings: """ def __init__(self, config=None, name=None, flavor_id='auto', ram=None, disk=None, vcpus=None, ephemeral=0, swap=0, - rxtx_factor=1.0, is_public=True, metadata=DEFAULT_METADATA): + rxtx_factor=1.0, is_public=True, metadata=None): """ Constructor :param config: dict() object containing the configuration settings using the attribute names below as each |