- ns_ip[str(vnf["member_vnf_index"])] = vnf["ip_address"]
- #uuid sce_vnf_id
- # vnf[mgmt_access]: '{interface_id: cf3cbf00-385c-49b4-9a3f-b400b7b15dc6, vm_id: d0dd22a9-91ef-46f1-8e8f-8cf4b2d5b2d7}'
- # vnf[vms]
+ ns_ip["vnf"][str(vnf["member_vnf_index"])] = vnf["ip_address"]
+ ns_ip["vdu"][str(vnf["member_vnf_index"])] = {}
+ for vm in vnf["vms"]:
+ if vm.get("ip_address"):
+ ns_ip["vdu"][str(vnf["member_vnf_index"])][vm["vdu_osm_id"]] = vm["ip_address"]