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";}
9 revision "2013-08-19" {
10 description "Initial revision of Inventory model";
14 typedef support-type {
26 typedef node-connector-id {
31 type instance-identifier;
34 typedef node-connector-ref {
35 type instance-identifier;
38 identity node-context {
39 description "Identity used to mark node context";
42 identity node-connector-context {
43 description "Identity used to mark node connector context";
47 description "Base identity for node types";
50 identity node-connector-type {
51 description "Base identity for node connectors type";
59 list "node-connector" {
61 ext:context-instance "node-connector-context";
67 grouping node-connector {
69 type node-connector-id;
73 grouping node-context-ref {
75 "Helper grouping which contains a reference to node context.";
77 ext:context-reference "node-context";
82 /** Base structure **/
86 ext:context-instance "node-context";
92 notification node-updated {
94 ext:context-reference "node-context";
100 notification node-connector-updated {
101 leaf node-connector-ref {
102 ext:context-reference "node-connector-context";
103 type node-connector-ref;
108 notification node-removed {
110 ext:context-reference "node-context";
115 notification node-connector-removed {
116 leaf node-connector-ref {
117 ext:context-reference "node-connector-context";
118 type node-connector-ref;