diff options
author | Steven Pisarski <s.pisarski@cablelabs.com> | 2017-03-06 17:14:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-06 17:14:37 +0000 |
commit | 06e3b9ca9abd8bc3d96707bbb2de0c460a196f2f (patch) | |
tree | e7a2975bcd79a6796f0504f4df7a3a4f03c05bdf /snaps/openstack/create_flavor.py | |
parent | 406584267b076f60c54d6cfef518dc22a82ae76c (diff) | |
parent | 8a6c7a2be06f25f9c8c18a80b1b54c3b3be8b62a (diff) |
Merge "Added the ability to give the tests the ability to add in flavor metadata."
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 |