X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_nbi%2Finstance_topics.py;h=60722676126f9b6781da9691ecbc2bbbd2f54fed;hb=4ee1915051d49c01c1aaeb3318845dc1043dd241;hp=4a5293d178355a7fa0e6017e611031478d900d8e;hpb=18101ea2396dcd53d7a8b6a2e923cebaddae4735;p=osm%2FNBI.git diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 4a5293d..6072267 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -450,7 +450,8 @@ class NsrTopic(BaseTopic): 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: @@ -974,7 +975,7 @@ class NsrTopic(BaseTopic): 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" )