Merge "Fixed NetconfDevice to store capability info."
[controller.git] / opendaylight / md-sal / model / model-inventory / src / main / yang / node-inventory.yang
index f4bde1f2d43878002e8f328a24380dfb9a3f58ea..77c92f91ce4358883513079f209c0d5098d9b2aa 100644 (file)
@@ -2,9 +2,9 @@ module opendaylight-inventory {
     namespace "urn:opendaylight:inventory";
     prefix inv;
 
-    import yang-ext {prefix ext;}
-    import ietf-inet-types {prefix inet;}
-    import ietf-yang-types {prefix yang;}
+    import yang-ext {prefix ext; revision-date "2013-07-09";}
+    import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
+    import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
 
 
     revision "2013-08-19" {
@@ -41,7 +41,15 @@ module opendaylight-inventory {
     }
 
     identity node-connector-context {
+        description "Identity used to mark node connector context";
+    }
+
+    identity node-type {
+        description "Base identity for node types";
+    }
 
+    identity node-connector-type {
+        description "Base identity for node connectors type";
     }
 
     grouping node {
@@ -53,9 +61,8 @@ module opendaylight-inventory {
             key "id";
             ext:context-instance "node-connector-context";
 
-            use node-connector;
+            uses node-connector;
         }
-
     }
 
     grouping node-connector {
@@ -64,6 +71,15 @@ module opendaylight-inventory {
         }
     }
 
+    grouping node-context-ref {
+        description 
+        "Helper grouping which contains a reference to node context.";
+        leaf node {
+            ext:context-reference "node-context";
+            type node-ref;
+        }
+    }
+
     /** Base structure **/
     container nodes {
         list node {