Updated namespace to use OSM URN; renamed rw-project to osm-project
[osm/IM.git] / models / yang / vlr.yang
index 616bad0..31b9401 100644 (file)
 
 module vlr
 {
 
 module vlr
 {
-  namespace "urn:ietf:params:xml:ns:yang:nfvo:vlr";
+  namespace "urn:etsi:osm:yang:vlr";
   prefix "vlr";
 
   prefix "vlr";
 
-  import rw-pb-ext {
-    prefix "rwpb";
-  }
-
   import ietf-yang-types {
     prefix "yang";
   }
   import ietf-yang-types {
     prefix "yang";
   }
@@ -35,8 +31,8 @@ module vlr
     prefix "manotypes";
   }
 
     prefix "manotypes";
   }
 
-  import rw-project {
-    prefix "rw-project";
+  import osm-project {
+    prefix "osm-project";
   }
 
   revision 2017-02-08 {
   }
 
   revision 2017-02-08 {
@@ -52,8 +48,14 @@ module vlr
       "Derived from earlier versions of base YANG files";
   }
 
       "Derived from earlier versions of base YANG files";
   }
 
-  augment "/rw-project:project" {
+  augment "/osm-project:project" {
     container vlr-catalog {
     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 {
@@ -73,14 +75,14 @@ module vlr
         leaf nsr-id-ref {
           description
             "NS instance identifier. 
         leaf nsr-id-ref {
           description
             "NS instance identifier. 
-             This is a leafref /rw-project:project/nsr:ns-instance-config/nsr:nsr/nsr:id";
+             This is a leafref /osm-project:project/nsr:ns-instance-config/nsr:nsr/nsr:id";
           type yang:uuid;
         }
 
         leaf vld-ref {
           description
             "Reference to VLD
           type yang:uuid;
         }
 
         leaf vld-ref {
           description
             "Reference to VLD
-           /rw-project:project/nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]
+           /osm-project:project/nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]
            /nsd/vld:vld/vld:id";
           type string;
         }
            /nsd/vld:vld/vld:id";
           type string;
         }
@@ -182,7 +184,6 @@ module vlr
           ";
 
           type enumeration {
           ";
 
           type enumeration {
-            rwpb:enum-type "VlOperationalStatus";
             enum init;
             enum vl-alloc-pending;
             enum running;
             enum init;
             enum vl-alloc-pending;
             enum running;