X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fvnfs%2Fvnf_create%2Finst_vnf.py;h=8fa01329e4fa1fd57e278ac95d87ea630c789377;hb=9a8f9cd744b44514cf94e15c84f315751f493c3c;hp=17b45bafb977a82b76572bafc6c8f005ed3c41aa;hpb=12af60d015b56b12768797e5729c43590366151d;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py index 17b45baf..8fa01329 100644 --- a/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py +++ b/lcm/lcm/nf/vnfs/vnf_create/inst_vnf.py @@ -387,6 +387,7 @@ class InstVnf(Thread): name='40G', tenant='admin', insttype=0, + is_predefined=ret["returnCode"], instid=self.nf_inst_id) elif res_type == adaptor.OPT_CREATE_NETWORK: logger.info('Create networks!') @@ -402,6 +403,7 @@ class InstVnf(Thread): name='pnet_network', tenant='admin', insttype=0, + is_predefined=ret["returnCode"], instid=self.nf_inst_id) elif res_type == adaptor.OPT_CREATE_SUBNET: logger.info('Create subnets!') @@ -418,6 +420,7 @@ class InstVnf(Thread): name='sub_pnet', tenant='admin', insttype=0, + is_predefined=ret["returnCode"], instid=self.nf_inst_id) elif res_type == adaptor.OPT_CREATE_PORT: logger.info('Create ports!') @@ -435,6 +438,7 @@ class InstVnf(Thread): name='aaa_pnet_cp', tenant='admin', insttype=0, + is_predefined=ret["returnCode"], instid=self.nf_inst_id) elif res_type == adaptor.OPT_CREATE_FLAVOR: logger.info('Create flavors!') @@ -448,6 +452,7 @@ class InstVnf(Thread): name='1', vcpu='1', extraspecs='1', + is_predefined=ret["returnCode"], instid=self.nf_inst_id) elif res_type == adaptor.OPT_CREATE_VM: logger.info('Create vms!') @@ -463,6 +468,7 @@ class InstVnf(Thread): insttype=0, instid=self.nf_inst_id, vmname="test_01", + is_predefined=ret["returnCode"], operationalstate=1) def do_rollback(self, args_=None):