X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=nfvo.py;h=21e57195a40510a15339c32eb5868950b57f44d7;hb=ef45f6154641499b4ad1d571925468637bb4c80c;hp=7537c756a5be1939b1bb7e7997b3e7b03e2b2cbb;hpb=36c0b17b51788c867b5aefe269cd860f4ebc7bb4;p=osm%2FRO.git 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: