Adopt netconf-node-inventory 56/73656/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 2 Jul 2018 15:16:56 +0000 (17:16 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 2 Jul 2018 19:23:50 +0000 (21:23 +0200)
This model used to be hosted in controller, but it really should
be hosted in netconf.

Change-Id: I54a6cd90c8e182ade53cba08fdaa301a64a677d5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/yang/netconf-node-inventory.yang [new file with mode: 0644]

diff --git a/netconf/sal-netconf-connector/src/main/yang/netconf-node-inventory.yang b/netconf/sal-netconf-connector/src/main/yang/netconf-node-inventory.yang
new file mode 100644 (file)
index 0000000..45fbd42
--- /dev/null
@@ -0,0 +1,40 @@
+module netconf-node-inventory {
+    namespace "urn:opendaylight:netconf-node-inventory";
+    prefix "netinv";
+
+    import opendaylight-inventory { prefix inv; revision-date "2013-08-19";}
+    import yang-ext {prefix ext; revision-date "2013-07-09";}
+
+    revision "2014-01-08" {
+        description "Initial revision of Inventory model";
+    }
+
+    grouping netconf-node-fields {
+        status deprecated;
+        leaf connected {
+            type boolean;
+        }
+
+        leaf-list initial-capability {
+            type string;
+        }
+
+        leaf-list current-capability {
+            type string;
+        }
+
+        container pass-through {
+            when "../connected = true";
+            description
+                "When the underlying node is connected, its NETCONF context
+                is available verbatim under this container through the
+                mount extension.";
+        }
+    }
+
+    augment /inv:nodes/inv:node {
+        ext:augment-identifier "netconf-node";
+        status deprecated;
+        uses netconf-node-fields;
+    }
+}