projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented basic test for RO. It runs basic RO functionality tests as well as scenar...
[osm/RO.git]
/
vimconn.py
diff --git
a/vimconn.py
b/vimconn.py
index
b5f8b07
..
ad06dc8
100644
(file)
--- a/
vimconn.py
+++ b/
vimconn.py
@@
-242,7
+242,13
@@
class vimconnector():
Returns the flavor dict details {'id':<>, 'name':<>, other vim specific } #TODO to concrete
'''
raise vimconnNotImplemented( "Should have implemented this" )
Returns the flavor dict details {'id':<>, 'name':<>, other vim specific } #TODO to concrete
'''
raise vimconnNotImplemented( "Should have implemented this" )
-
+
+ def get_flavor_id_from_data(self, flavor_dict):
+ """Obtain flavor id that match the flavor description
+ Returns the flavor_id or raises a vimconnNotFoundException
+ """
+ raise vimconnNotImplemented( "Should have implemented this" )
+
def new_flavor(self, flavor_data):
'''Adds a tenant flavor to VIM
flavor_data contains a dictionary with information, keys:
def new_flavor(self, flavor_data):
'''Adds a tenant flavor to VIM
flavor_data contains a dictionary with information, keys:
@@
-287,7
+293,9
@@
class vimconnector():
raise vimconnNotImplemented( "Should have implemented this" )
def get_image_id_from_path(self, path):
raise vimconnNotImplemented( "Should have implemented this" )
def get_image_id_from_path(self, path):
- '''Get the image id from image path in the VIM database. Returns the image_id'''
+ """Get the image id from image path in the VIM database.
+ Returns the image_id or raises a vimconnNotFoundException
+ """
raise vimconnNotImplemented( "Should have implemented this" )
def get_image_list(self, filter_dict={}):
raise vimconnNotImplemented( "Should have implemented this" )
def get_image_list(self, filter_dict={}):
@@
-303,7
+311,7
@@
class vimconnector():
'''
raise vimconnNotImplemented( "Should have implemented this" )
'''
raise vimconnNotImplemented( "Should have implemented this" )
- def new_vminstance(self,name,description,start,image_id,flavor_id,net_list,cloud_config=None):
+ def new_vminstance(self,name,description,start,image_id,flavor_id,net_list,cloud_config=None
,disk_list=None
):
'''Adds a VM instance to VIM
Params:
start: indicates if VM must start or boot in pause mode. Ignored
'''Adds a VM instance to VIM
Params:
start: indicates if VM must start or boot in pause mode. Ignored