From f368948e25f78c64c328662b52d6b139b02826b4 Mon Sep 17 00:00:00 2001 From: tomsou Date: Fri, 17 Mar 2017 09:26:06 +0000 Subject: Create flavor for Quagga ubuntu VM - Implement a new function in lib/utils ensures (gets or creates) a new flavor existence - Use this new function within Testcase3, in order to create a flavor big enough to start ubuntu with JIRA: SDNVPN-120 Change-Id: I5c7d9c855f083b96bfd056bb5d935baa851420c9 Signed-off-by: tomsou --- sdnvpn/lib/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sdnvpn/lib/utils.py') diff --git a/sdnvpn/lib/utils.py b/sdnvpn/lib/utils.py index a047269..2aef689 100644 --- a/sdnvpn/lib/utils.py +++ b/sdnvpn/lib/utils.py @@ -28,6 +28,13 @@ ODL_USER = 'admin' ODL_PASS = 'admin' +def create_custom_flavor(): + return os_utils.get_or_create_flavor(common_config.custom_flavor_name, + common_config.custom_flavor_ram, + common_config.custom_flavor_disk, + common_config.custom_flavor_vcpus) + + def create_net(neutron_client, name): logger.debug("Creating network %s", name) net_id = os_utils.create_neutron_net(neutron_client, name) -- cgit 1.2.3-korg