vsd.get("vdu-storage-requirements")[0].get("key") == "multiattach"
and vsd.get("vdu-storage-requirements")[0].get("value") == "True"
):
- if "shared" not in vsd["id"]:
+ # Avoid setting the volume name multiple times
+ if not match(f"shared-.*-{vnfd['id']}", vsd["id"]):
vsd["id"] = f"shared-{vsd['id']}-{vnfd['id']}"
svsd.append(vsd)
if svsd:
if (
cpd.get("constituent-cpd-id")
== iface_ext_cp
- ):
+ ) and vnf_profile.get("id") == vnf_index:
vdu_iface["ns-vld-id"] = vlc.get(
"virtual-link-profile-id"
)