X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=vimconn.py;h=7d68ac45c6ee0b1ffa916b1f1e6097b7c0da532d;hb=b69fa9f026b1b5839799cc5dc48af625981cbc3a;hp=e6e042154198aece5328a239c1b52d68eef5c7c0;hpb=4dba7abed342277b08ebe1e903a9a87284c433ab;p=osm%2FRO.git diff --git a/vimconn.py b/vimconn.py index e6e04215..7d68ac45 100644 --- a/vimconn.py +++ b/vimconn.py @@ -263,14 +263,22 @@ 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: - 0,"Image not found" if there are no images with that path - 1,image-id if there is one image with that path - <0,message if there was an error (Image not found, error contacting VIM, more than 1 image with that path, etc.) - ''' + '''Get the image id from image path in the VIM database. Returns the image_id''' raise vimconnNotImplemented( "Should have implemented this" ) + def get_image_list(self, filter_dict={}): + '''Obtain tenant images from VIM + Filter_dict can be: + name: image name + id: image uuid + checksum: image checksum + location: image path + Returns the image list of dictionaries: + [{}, ...] + List can be empty + ''' + raise vimconnNotImplemented( "Should have implemented this" ) + def new_vminstance(self,name,description,start,image_id,flavor_id,net_list,cloud_config=None): '''Adds a VM instance to VIM Params: