Feature 10936 Keeping persistent volume of VNF 78/12778/3
authorGulsum Atici <gulsum.atici@canonical.com>
Mon, 12 Dec 2022 10:08:27 +0000 (13:08 +0300)
committerGulsum Atici <gulsum.atici@canonical.com>
Tue, 17 Jan 2023 19:24:45 +0000 (22:24 +0300)
Adding keep-volume key to the description of vdu-storage-requirements

Change-Id: I750e4b4b3979ad61220bf06310770c90108f2986
Signed-off-by: Gulsum Atici <gulsum.atici@canonical.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 {