Fixed typo in node-inventory model.
[controller.git] / opendaylight / md-sal / model / model-inventory / src / main / yang / node-inventory.yang
1 module opendaylight-inventory {
2     namespace "urn:opendaylight:inventory";
3     prefix inv;
4
5     import yang-ext {prefix ext;}
6     import ietf-inet-types {prefix inet;}
7     import ietf-yang-types {prefix yang;}
8
9
10     revision "2013-08-19" {
11         description "Initial revision of Inventory model";
12     }
13     
14     
15     typedef support-type {
16         type enumeration {
17             enum native;
18             enum emulated;
19             enum not-supported;
20         }
21     }
22
23     typedef node-id {
24         type inet:uri;
25     }
26
27     typedef node-connector-id {
28         type inet:uri;
29     }
30
31     typedef node-ref {
32         type instance-identifier;
33     }
34
35     typedef node-connector-ref {
36         type instance-identifier;
37     }
38
39     identity node-context {
40         description "Identity used to mark node context";
41     }
42
43     identity node-connector-context {
44
45     }
46
47     grouping node {
48         leaf id {
49             type node-id;
50         }
51
52         list "node-connector" {
53             key "id";
54             ext:context-instance "node-connector-context";
55
56             uses node-connector;
57         }
58
59     }
60
61     grouping node-connector {
62         leaf id {
63             type node-connector-id;
64         }
65     }
66
67     /** Base structure **/
68     container nodes {
69         list node {
70             key "id";
71             ext:context-instance "node-context";
72
73             uses node;
74         }
75     }
76
77     notification node-updated {
78         leaf node-ref {
79             ext:context-reference "node-context";
80             type node-ref;
81         }
82         uses node;
83     }
84
85     notification node-connector-updated {
86         leaf node-connector-ref {
87             ext:context-reference "node-connector-context";
88             type node-connector-ref;
89         }
90         uses node-connector;
91     }
92
93     notification node-removed {
94         leaf node-ref {
95             ext:context-reference "node-context";
96             type node-ref;
97         }
98     }
99
100     notification node-connector-removed {
101         leaf node-connector-ref {
102             ext:context-reference "node-connector-context";
103             type node-connector-ref;
104         }
105     }
106 }