Code Review
/
sdnvpn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Create flavor for Quagga ubuntu VM
[sdnvpn.git]
/
sdnvpn
/
lib
/
utils.py
diff --git
a/sdnvpn/lib/utils.py
b/sdnvpn/lib/utils.py
index
a047269
..
2aef689
100644
(file)
--- a/
sdnvpn/lib/utils.py
+++ b/
sdnvpn/lib/utils.py
@@
-28,6
+28,13
@@
ODL_USER = 'admin'
ODL_PASS = '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)
def create_net(neutron_client, name):
logger.debug("Creating network %s", name)
net_id = os_utils.create_neutron_net(neutron_client, name)