X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fconst.py;h=c5ebf5d0632064ed22b9752ec1bd46a39bf3a948;hb=42a3fbcd245ae15d4fdd23ec1699c30d34a2a30e;hp=7da4d859130f4396ffeff67728938136e1ddc11d;hpb=b04be0ef54a804315289e34fa0676f60582a06fa;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/const.py b/lcm/lcm/nf/const.py index 7da4d859..c5ebf5d0 100644 --- a/lcm/lcm/nf/const.py +++ b/lcm/lcm/nf/const.py @@ -602,15 +602,6 @@ vnfdModel = { "image_file": "test", }, ], - "vdus": [ - ], - "image_files": [], - "routers": [], - "local_storages": [], - "vnf_exposed": { - "external_cps": [], - "forward_cps": [] - }, "vls": [ { "vl_id": "test", @@ -640,7 +631,81 @@ vnfdModel = { "route_external": "test", } ], - "cps": [], # TODO + "cps": [ + { + "vdu_id": "test", + "cp_id": "cp1", + "networkId": "", # TODO + "subnetId": "", # TODO + "vl_id": "test", + "properties": { + "name": "test", + "mac_address": "test", + "protocol_data": [ + { + "address_data": { + "l3_address_data": { + "fixed_ip_address": "test" + }, + }, + }, + ], + "vnic_type": "test", + } + } + ], + "vdus": [ + { + "vdu_id": "test", + "properties": { + "location_info": { + "vimid": "test", + "tenant": "chinamobile", + "availability_zone": "test", + }, + "name": "test", + "inject_files": [], + "user_data": "test", + "meta_data": {}, + }, + "cps": [], + "type": "tosca.nodes.nfv.Vdu.Compute", + "virtual_compute": { + "virtual_cpu": { + "num_virtual_cpu": "16", + }, + "virtual_memory": { + "virtual_mem_size": "8000 MB", + "vdu_memory_requirements": { + "memoryPageSize": "8 MB", + }, + }, + }, + "virtual_storage": { + "type_of_storage": "ephemeral", + "size_of_storage": "10 GB", + }, + "type": "tosca.nodes.nfv.Vdu.Compute", + "artifacts": [ + { + "artifact_name": "sw_image", + "file": "sss.vmdk", + }, + ], + "volume_storages": [ + { + "volume_storage_id": "test", + } + ], + }, + ], + "image_files": [], + "routers": [], + "local_storages": [], + "vnf_exposed": { + "external_cps": [], + "forward_cps": [] + }, "inputs": { "pe1_id": { "type": "string",