X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=vimconn.py;h=ad06dc8bc55d994588ec0c8a5aad955acad9b4fa;hb=cf157a85f89e1e29d4413c49c21c5e6657faf710;hp=814be65a40d5ab0b2e477fb2749ae1008f611b81;hpb=fa51c20775384588b66c08ed38fca01780614bc2;p=osm%2FRO.git diff --git a/vimconn.py b/vimconn.py index 814be65a..ad06dc8b 100644 --- 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" ) - + + 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: @@ -287,7 +293,9 @@ class vimconnector(): 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={}):