Feature 10936 Keeping persistent volume of VNF 58/12858/1
authorGulsum Atici <gulsum.atici@canonical.com>
Mon, 12 Dec 2022 10:08:27 +0000 (13:08 +0300)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 24 Jan 2023 15:02:19 +0000 (16:02 +0100)
Adding keep-volume key to the description of vdu-storage-requirements

Change-Id: I750e4b4b3979ad61220bf06310770c90108f2986
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
models/augments/additional-info.yang
models/augments/common-augments.yang

index 2119073..6b460c1 100644 (file)
@@ -39,4 +39,8 @@ module additional-info {
     augment "/vnfd:vnfd/vnfd:virtual-storage-desc" {
         uses common:description;
     }
+
+    augment "/vnfd:vnfd/vnfd:virtual-storage-desc/vnfd:vdu-storage-requirements" {
+        uses common:vdu-storage-requirements;
+    }
 }
index f1235eb..cf883b9 100644 (file)
@@ -726,6 +726,27 @@ module common-augments {
         }
     }
 
+    grouping vdu-storage-requirements {
+        list vdu-storage-requirements {
+            description
+              "Array of key-value pairs that articulate the storage
+               deployment requirements. If the storage type is persistent-storage
+               following setting holds the persistent volume upon VM deletion:
+               key: keep-volume
+               value: true";
+
+            key "key";
+
+            leaf key {
+                type string;
+            }
+
+            leaf value {
+                type string;
+            }
+        }
+    }
+
     typedef scaling-trigger {
         type enumeration {
             enum pre-scale-in {