allow force at DELETE nslcm/vi/ns_instances_content
Change-Id: Ib6dccc65f45f3fdb0a8dcd504db851e43e35cf40
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
"created-time": now,
# "vnfd": vnfd, # at OSM model.but removed to avoid data duplication TODO: revise
"vnfd-ref": vnfd_id,
- "vnfd-id": vnfr_id, # not at OSM model, but useful
+ "vnfd-id": vnfd["_id"], # not at OSM model, but useful
"vim-account-id": None,
"vdur": [],
"connection-point": [],
-0.1.9
-2018-05-21
+0.1.10
+2018-05-28
outdata = self.engine.del_item_list(session, engine_item, kwargs)
cherrypy.response.status = HTTPStatus.OK.value
else: # len(args) > 1
- if item == "ns_instances_content":
+ if item == "ns_instances_content" and not force:
opp_id = self.engine.ns_operation(session, _id, "terminate", {"autoremove": True}, None)
outdata = {"_id": opp_id}
cherrypy.response.status = HTTPStatus.ACCEPTED.value