From b0673985c9a457a7d643c1c4b758c336cc68726c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1s=20Villaseca?= Date: Wed, 19 Feb 2020 17:04:12 -0300 Subject: [PATCH] Add description to multiple descriptors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I7dd2064312b6398cd57af5583d5089f76f3b79b0 Signed-off-by: Tomás Villaseca --- augments/additional-info.yang | 42 +++++++++++++++++++++++++++++++++++ augments/common-augments.yang | 6 +++++ 2 files changed, 48 insertions(+) create mode 100644 augments/additional-info.yang diff --git a/augments/additional-info.yang b/augments/additional-info.yang new file mode 100644 index 0000000..2119073 --- /dev/null +++ b/augments/additional-info.yang @@ -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; + } +} diff --git a/augments/common-augments.yang b/augments/common-augments.yang index bcb7d47..c0bbb82 100644 --- a/augments/common-augments.yang +++ b/augments/common-augments.yang @@ -506,4 +506,10 @@ module common-augments { } } } + + grouping description { + leaf description { + type string; + } + } } \ No newline at end of file -- 2.17.1