1 module opendaylight-inventory {
2 namespace "urn:opendaylight:inventory";
5 import yang-ext {prefix ext; revision-date "2013-07-09";}
6 import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
7 import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
10 revision "2013-08-19" {
11 description "Initial revision of Inventory model";
15 typedef support-type {
27 typedef node-connector-id {
32 type instance-identifier;
35 typedef node-connector-ref {
36 type instance-identifier;
39 identity node-context {
40 description "Identity used to mark node context";
43 identity node-connector-context {
44 description "Identity used to mark node connector context";
48 description "Base identity for node types";
51 identity node-connector-type {
52 description "Base identity for node connectors type";
60 list "node-connector" {
62 ext:context-instance "node-connector-context";
68 grouping node-connector {
70 type node-connector-id;
74 grouping node-context-ref {
76 "Helper grouping which contains a reference to node context.";
78 ext:context-reference "node-context";
83 /** Base structure **/
87 ext:context-instance "node-context";
93 notification node-updated {
95 ext:context-reference "node-context";
101 notification node-connector-updated {
102 leaf node-connector-ref {
103 ext:context-reference "node-connector-context";
104 type node-connector-ref;
109 notification node-removed {
111 ext:context-reference "node-context";
116 notification node-connector-removed {
117 leaf node-connector-ref {
118 ext:context-reference "node-connector-context";
119 type node-connector-ref;