Merge from master
[osm/SO.git] / models / plugins / yang / vnfr.yang
index 13d9600..2678c50 100644 (file)
@@ -31,12 +31,12 @@ module vnfr
     prefix "rwpb";
   }
 
-  import vnfd {
-    prefix "vnfd";
+  import vnfd-base {
+    prefix "vnfd-base";
   }
 
-  import nsd {
-    prefix "nsd";
+  import project-nsd {
+    prefix "project-nsd";
   }
 
   import vlr {
@@ -59,7 +59,7 @@ module vnfr
     prefix "rw-cloud";
   }
 
-  revision 2017-02-08 {
+  revision 2017-02-28 {
     description
       "Update model to support projects.";
   }
@@ -170,7 +170,7 @@ module vnfr
         leaf member-vnf-index-ref {
           description "Reference to member VNF index in Network service.";
           type leafref {
-            path "../../../nsd:nsd-catalog/nsd:nsd/nsd:constituent-vnfd/nsd:member-vnf-index";
+            path "../../../project-nsd:nsd-catalog/project-nsd:nsd/project-nsd:constituent-vnfd/project-nsd:member-vnf-index";
           }
         }
 
@@ -223,7 +223,7 @@ module vnfr
 
         container vnfd {
           description "VNF descriptor used to instantiate this VNF";
-          uses vnfd:vnfd-descriptor;
+          uses vnfd-base:vnfd-descriptor;
         }
 
         // Use parameters provided here to configure this VNF
@@ -269,7 +269,7 @@ module vnfr
              different VNFs. The NFVO will use VLDs and VNFFGs at
              the network service level to construct network services.";
 
-          uses vnfd:common-connection-point;
+          uses vnfd-base:common-connection-point;
 
           leaf vlr-ref {
             description
@@ -312,6 +312,15 @@ module vnfr
             type string;
           }
 
+          leaf unique-short-name {
+            description "Short Unique name of the VDU
+                  This will be of the format NSR name-ShortnedString-VDUname
+                  NSR name and VDU name shall be constrained to 10 characters";
+            rwpb:field-inline "true";
+            rwpb:field-string-max 64;
+            type string;
+          }
+
           leaf vdu-id-ref {
             type leafref {
               path "../../vnfd/vdu/id";
@@ -390,7 +399,7 @@ module vnfr
                has only one VNFC, it may not have any internal
                connection points.";
 
-            uses vnfd:common-connection-point;
+            uses vnfd-base:common-connection-point;
 
             leaf ip-address {
               description