aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2018-07-27 09:44:06 +0800
committerFu Jinhua <fu.jinhua@zte.com.cn>2018-07-27 06:39:14 +0000
commit1ec476db8795ff868065a2e9d8e080afb15ab59b (patch)
treeac7b0cb55f80d75a6581f56d65fa4e9153c74c90
parentd555af8d188de1a6acf6a58fca1613d39bcc025b (diff)
update vnf instance name format
Issue-ID: VFC-1001 Change-Id: I2cf01c673cf4b57460a10450f980384c80c8a2d7 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rw-r--r--lcm/ns/vnfs/create_vnfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/ns/vnfs/create_vnfs.py b/lcm/ns/vnfs/create_vnfs.py
index 8e9c016d..631063fd 100644
--- a/lcm/ns/vnfs/create_vnfs.py
+++ b/lcm/ns/vnfs/create_vnfs.py
@@ -121,7 +121,7 @@ class CreateVnfs(Thread):
self.vnfd_id = vnf_info['properties']['id']
if 'name' not in vnf_info['properties']:
# HW vnf instance name must start with alphabet
- self.vnf_inst_name = 'vnf' + self.vnfd_id + str(uuid.uuid4())
+ self.vnf_inst_name = 'vnf' + self.vnfd_id[:10] + str(uuid.uuid4())
else:
self.vnf_inst_name = vnf_info['properties']['name'] + str(uuid.uuid4())
self.vnf_inst_name = self.vnf_inst_name[:30]