From: tierno Date: Fri, 27 Apr 2018 12:33:12 +0000 (+0200) Subject: Set at nsd vnf_name equal to member_vnf_index X-Git-Tag: v4.0.0~15 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=12425a2d159822f437a382176e61a28bbb47fab8;p=osm%2FRO.git Set at nsd vnf_name equal to member_vnf_index Change-Id: If12df6926928ef6d62a053518324d02c4c8332e4 Signed-off-by: tierno --- diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index 895a9569..6e7a4006 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -2240,7 +2240,7 @@ def new_nsd_v3(mydb, tenant_id, nsd_descriptor): db_sce_vnf = { "uuid": sce_vnf_uuid, "scenario_id": scenario_uuid, - "name": existing_vnf[0]["name"][:200] + "." + get_str(vnf, "member-vnf-index", 5), + "name": get_str(vnf, "member-vnf-index", 255), "vnf_id": existing_vnf[0]["uuid"], "member_vnf_index": str(vnf["member-vnf-index"]), # TODO 'start-by-default': True