Set at nsd vnf_name equal to member_vnf_index 46/6046/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 27 Apr 2018 12:33:12 +0000 (14:33 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 27 Apr 2018 12:33:12 +0000 (14:33 +0200)
Change-Id: If12df6926928ef6d62a053518324d02c4c8332e4
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_ro/nfvo.py

index 895a956..6e7a400 100644 (file)
@@ -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