Skip to content
Snippets Groups Projects
Commit 21025601 authored by Alfonso Tierno's avatar Alfonso Tierno
Browse files

Allow ns-creation params: vim-network, multisite deployement


Change-Id: I783f55f80259c1c6ff3df854eb77df9024cd71e7
Signed-off-by: default avatartierno <alfonso.tiernosepulveda@telefonica.com>
parent 09c073ed
Branches v3.1
No related tags found
No related merge requests found
......@@ -490,6 +490,7 @@ class Engine(object):
"nsd-name-ref": nsd["name"],
"operational-events": [], # "id", "timestamp", "description", "event",
"nsd-ref": nsd["id"],
"instantiate_params": ns_request,
"ns-instance-config-ref": _id,
"id": _id,
"_id": _id,
......@@ -622,7 +623,7 @@ class Engine(object):
validate_input(indata, "ns_" + action, new=True)
# get ns from nsr_id
nsr = self.get_item(session, "nsrs", nsInstanceId)
if nsr["_admin"]["nsState"] == "NOT_INSTANTIATED":
if not nsr["_admin"].get("nsState") or nsr["_admin"]["nsState"] == "NOT_INSTANTIATED":
if action == "terminate" and indata.get("autoremove"):
# NSR must be deleted
return self.del_item(session, "nsrs", nsInstanceId)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment