Add MANO roles for projects
[osm/SO.git] / rwlaunchpad / plugins / yang / rw-staging-mgmt.yang
index 8ae1f71..7e16425 100644 (file)
@@ -57,6 +57,10 @@ module rw-staging-mgmt
     prefix "rw-project";
   }
 
+  import rw-project-mano {
+    prefix "rw-project-mano";
+  }
+
   revision 2017-02-08 {
     description
       "Update model to support projects.";
@@ -90,6 +94,13 @@ module rw-staging-mgmt
       type uint64;
       default 3600;
     }
+
+    leaf project-name {
+      description "Project to which this belongs";
+      type leafref {
+        path "/rw-project:project/rw-project:name";
+      }
+    }
   }
 
   grouping staging-area-meta {
@@ -147,7 +158,6 @@ module rw-staging-mgmt
 
     input {
       uses staging-area-config;
-      uses manotypes:rpc-project-name;
     }
 
     output {