X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=nfvo.py;h=21e57195a40510a15339c32eb5868950b57f44d7;hp=7537c756a5be1939b1bb7e7997b3e7b03e2b2cbb;hb=4540ea5619ae62e29ecec6b07bf0e81e35fd56f0;hpb=c75a5dc7e6957be0b95f96ea7895e677e847550c diff --git a/nfvo.py b/nfvo.py index 7537c756..21e57195 100644 --- a/nfvo.py +++ b/nfvo.py @@ -2759,6 +2759,8 @@ def vim_action_get(mydb, tenant_id, datacenter, item, name): content = myvim.get_network_list(filter_dict=filter_dict) elif item=="tenants": content = myvim.get_tenant_list(filter_dict=filter_dict) + elif item == "images": + content = myvim.get_image_list(filter_dict=filter_dict) else: raise NfvoException(item + "?", HTTP_Method_Not_Allowed) logger.debug("vim_action response %s", content) #update nets Change from VIM format to NFVO format @@ -2796,6 +2798,8 @@ def vim_action_delete(mydb, tenant_id, datacenter, item, name): content = myvim.delete_network(item_id) elif item=="tenants": content = myvim.delete_tenant(item_id) + elif item == "images": + content = myvim.delete_image(item_id) else: raise NfvoException(item + "?", HTTP_Method_Not_Allowed) except vimconn.vimconnException as e: