continue
db_nsds = self.db.get_one("nsds", {"_id": nss["nsdId"]})
# Go for nsd, and search the CP that match with nst:CP to get vld-id-ref
- for cp_nsd in db_nsds.get("connection-point", ()):
- if cp_nsd["name"] == nss_cp_item["nsd-connection-point-ref"]:
+ for cp_nsd in db_nsds.get("sapd", ()):
+ if cp_nsd["id"] == nss_cp_item["nsd-connection-point-ref"]:
if nslcmop.get("operationParams"):
if nslcmop["operationParams"].get("nsName") == nss["nsName"]:
vld_id = RO_item["vld_id"]
netslice_scenario_id = RO_item["netslice_scenario_id"]
nslcmop_vld = {}
- nslcmop_vld["name"] = cp_nsd["vld-id-ref"]
+ nslcmop_vld["name"] = cp_nsd["virtual-link-desc"]
for vld in get_iterable(nslcmop["operationParams"], "vld"):
- if vld["name"] == cp_nsd["vld-id-ref"]:
+ if vld["name"] == cp_nsd["virtual-link-desc"]:
nslcmop_vld.update(vld)
if self.ro_config["ng"]:
nslcmop_vld["common_id"] = netslice_scenario_id