e7ac38cba136959a29d198cc92a1c1d7416c6b48
[controller.git] / opendaylight / md-sal / model / model-inventory / src / main / yang / netconf-node-inventory.yang
1 module netconf-node-inventory {
2     namespace "urn:opendaylight:netconf-node-inventory";
3     prefix "netinv";
4     
5     import opendaylight-inventory { prefix inv; revision-date "2013-08-19";}
6     import yang-ext {prefix ext; revision-date "2013-07-09";}
7     
8     revision "2014-01-08" {
9         description "Initial revision of Inventory model";
10     }
11     
12     grouping netconf-node-fields {
13         leaf connected {
14             type boolean; 
15         }
16     
17         leaf-list initial-capability {
18             type string;
19         }
20         
21         leaf-list current-capability {
22             type string;
23         }
24
25         container pass-through {
26             when "../connected = true";
27             description
28                 "When the underlying node is connected, its NETCONF context
29                 is available verbatim under this container through the
30                 mount extension.";
31         }
32     }
33     
34     augment /inv:nodes/inv:node {
35         ext:augment-identifier "netconf-node";
36         
37         uses netconf-node-fields;
38     }
39 }