Add codegen support for nested notifications
[mdsal.git] / binding / mdsal-binding-test-model / src / main / yang / opendaylight-test-notification.yang
1 module opendaylight-test-notification {
2     yang-version 1.1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:test:bi:ba:notification";
4     prefix "ntf";
5
6     description
7         "Test model for testing of registering notification listener and publishing of notification.";
8
9     revision "2015-02-05" {
10         description
11             "Initial revision";
12     }
13
14     notification out-of-pixie-dust-notification {
15         description "Just a testing notification that we can not fly for now.";
16
17         leaf reason {
18             type string;
19         }
20
21         leaf days-till-new-dust {
22             type uint16;
23         }
24     }
25
26     container wood {
27         typedef tree-id {
28             type uint64;
29         }
30
31         grouping tree-fell-properties {
32             // There might have been a mime around, do you care?
33             leaf hit-mime {
34                 type boolean;
35             }
36         }
37
38         notification a-tree-fell {
39             leaf tree-id {
40                 type tree-id;
41             }
42             uses tree-fell-properties;
43         }
44
45         list tree {
46             leaf id {
47                 type tree-id;
48             }
49             key id;
50
51             notification i-fell {
52                 uses tree-fell-properties;
53             }
54         }
55     }
56 }
57