-
- def create_vnf_in_aai(self):
- logger.debug("CreateVnf::create_vnf_in_aai::report vnf instance[%s] to aai." % self.nf_inst_id)
- data = {
- "vnf-id": self.nf_inst_id,
- "vnf-name": self.vnf_instance_mame,
- "vnf-type": "INFRA",
- "in-maint": True,
- "is-closed-loop-disabled": False
- }
- resp_data, resp_status = create_vnf_aai(self.nf_inst_id, data)
- if resp_data:
- logger.debug("Fail to create vnf instance[%s] to aai, resp_status: [%s]." % (self.nf_inst_id, resp_status))
- else:
- logger.debug("Success to create vnf instance[%s] to aai, resp_status: [%s]." % (self.nf_inst_id, resp_status))