schema-version added in VNFD, NSD, VLR, VNFR and NSR 83/5783/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 18 Dec 2017 10:34:47 +0000 (11:34 +0100)
committerhoban <adrian.hoban@intel.com>
Wed, 20 Dec 2017 17:22:02 +0000 (19:22 +0200)
Change-Id: I718533b5fd5dac26d07f2093f42485e56de6adc9
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
models/yang/nsd.yang
models/yang/nsr.yang
models/yang/vlr.yang
models/yang/vnfd.yang
models/yang/vnfr.yang

index 6c8b8c5..55b40eb 100644 (file)
@@ -308,6 +308,12 @@ module nsd
 
   container nsd-catalog {
 
 
   container nsd-catalog {
 
+    leaf schema-version {
+      description "Schema version for the NSD. If unspecified, it assumes v3.0";
+      type string;
+      default "v3.0";
+    }
+
     list nsd {
       key id;
 
     list nsd {
       key id;
 
index 12cf850..4f2eb73 100644 (file)
@@ -217,6 +217,12 @@ module nsr
         key "id";
         unique "name";
 
         key "id";
         unique "name";
 
+        leaf schema-version {
+          description "Schema version for the NSR. If unspecified, it assumes v3.0";
+          type string;
+          default "v3.0";
+        }
+
         leaf id {
           description "Identifier for the NSR.";
           type yang:uuid;
         leaf id {
           description "Identifier for the NSR.";
           type yang:uuid;
index 6a9b591..9137539 100644 (file)
@@ -50,6 +50,12 @@ module vlr
 
   augment "/rw-project:project" {
     container vlr-catalog {
 
   augment "/rw-project:project" {
     container vlr-catalog {
+      leaf schema-version {
+        description "Schema version for the VLR. If unspecified, it assumes v3.0";
+        type string;
+        default "v3.0";
+      }
+
       config false;
 
       list vlr {
       config false;
 
       list vlr {
index d1c9df6..4816166 100644 (file)
@@ -43,6 +43,12 @@ module vnfd
     description
       "Virtual Network Function Descriptor (VNFD).";
 
     description
       "Virtual Network Function Descriptor (VNFD).";
 
+    leaf schema-version {
+      description "Schema version for the VNFD. If unspecified, it assumes v3.0";
+      type string;
+      default "v3.0";
+    }
+
     list vnfd {
       key "id";
 
     list vnfd {
       key "id";
 
index b669f97..6d23065 100644 (file)
@@ -197,6 +197,12 @@ module vnfr
 
   augment "/rw-project:project" {
     container vnfr-catalog {
 
   augment "/rw-project:project" {
     container vnfr-catalog {
+      leaf schema-version {
+        description "Schema version for the VNFR. If unspecified, it assumes v3.0";
+        type string;
+        default "v3.0";
+      }
+
       config false;
       list vnfr {
         description
       config false;
       list vnfr {
         description