step = ""
# look for nstd
self.logger.info(str(slice_request))
- step = "getting nstd id='{}' from database".format(slice_request.get("nstdId"))
- _filter = {"id": slice_request["nstdId"]}
+ step = "getting nstd id='{}' from database".format(slice_request.get("nstId"))
+ _filter = {"_id": slice_request["nstId"]}
_filter.update(BaseTopic._get_project_filter(session, write=False, show_all=True))
nstd = self.db.get_one("nsts", _filter)
nstd.pop("_admin", None)
vim = r_json[0]
self.vim_id = vim["_id"]
- ns_data = {"nsiDescription": "default description", "nsiName": "my_slice", "nstdId": "cirros_nst",
+ ns_data = {"nsiDescription": "default description", "nsiName": "my_slice", "nstId": nst_id,
"vimAccountId": self.vim_id}
ns_data_text = yaml.safe_dump(ns_data, default_flow_style=True, width=256)
"nsiInstanceId": id_schema,
"nsiName": name_schema,
"nsiDescription": {"oneOf": [description_schema, {"type": "null"}]},
- "nstdId": string_schema,
+ "nstId": string_schema,
"vimAccountId": id_schema,
"ssh_keys": {"type": "string"},
"nsi_id": id_schema,
"items": ns_instantiate
},
},
- "required": ["nsiName", "nstdId", "vimAccountId"],
+ "required": ["nsiName", "nstId", "vimAccountId"],
"additionalProperties": False
}