projects
/
osm
/
NBI.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f31116
)
Feature 10972: Support of volume multi-attach
99/13499/4
author
vegall
<lvega@whitestack.com>
Fri, 2 Jun 2023 21:25:32 +0000
(21:25 +0000)
committer
garciadeblas
<gerardo.garciadeblas@telefonica.com>
Tue, 20 Jun 2023 13:57:59 +0000
(15:57 +0200)
Fixes issue with volume rename
Change-Id: I067dca33b366a8ded869b0a4bb2b4bdd6fded26d
Signed-off-by: vegall <lvega@whitestack.com>
osm_nbi/instance_topics.py
patch
|
blob
|
history
diff --git
a/osm_nbi/instance_topics.py
b/osm_nbi/instance_topics.py
index
4a5293d
..
4193017
100644
(file)
--- 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: