Add description to multiple descriptors 22/8622/18
authorTomás Villaseca <tvillaseca@whitestack.com>
Wed, 19 Feb 2020 20:04:12 +0000 (17:04 -0300)
committerTomás Villaseca <tvillaseca@whitestack.com>
Sat, 16 May 2020 19:10:48 +0000 (15:10 -0400)
Change-Id: I7dd2064312b6398cd57af5583d5089f76f3b79b0
Signed-off-by: Tomás Villaseca <tvillaseca@whitestack.com>
augments/additional-info.yang [new file with mode: 0644]
augments/common-augments.yang

diff --git a/augments/additional-info.yang b/augments/additional-info.yang
new file mode 100644 (file)
index 0000000..2119073
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+  Copyright 2020 Whitestack LLC
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+  implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+*/
+
+module additional-info {
+    yang-version 1.1;
+    namespace "urn:etsi:osm:yang:augments:additional-info";
+    prefix "additional-info";
+
+    import etsi-nfv-vnfd {
+        prefix vnfd;
+    }
+
+    import common-augments {
+        prefix common;
+    }
+
+    augment "/vnfd:vnfd" {
+        uses common:description;
+    }
+
+    augment "/vnfd:vnfd/vnfd:df/vnfd:virtual-link-profile/vnfd:virtual-link-protocol-data/vnfd:l3-protocol-data" {
+        uses common:description;
+    }
+
+    augment "/vnfd:vnfd/vnfd:virtual-storage-desc" {
+        uses common:description;
+    }
+}
index bcb7d47..c0bbb82 100644 (file)
@@ -506,4 +506,10 @@ module common-augments {
             }
         }
     }
+
+    grouping description {
+        leaf description {
+            type string;
+        }
+    }
 }
\ No newline at end of file