Add a simple Binding query language
[mdsal.git] / binding / mdsal-binding-test-model / src / main / yang / mdsal-query.yang
1 module mdsal-query {
2   namespace "mdsal-query";
3   prefix mq;
4
5   grouping first-grp {
6     list system {
7       key name;
8
9       leaf name {
10         type string;
11       }
12
13       leaf alias {
14         type string;
15       }
16
17       uses second-grp;
18     }
19   }
20
21   grouping second-grp {
22     list alarms {
23       key id;
24
25       leaf id {
26         type uint64;
27       }
28
29       leaf critical {
30         type empty;
31       }
32
33       uses third-grp;
34     }
35   }
36
37   grouping third-grp {
38     list affected-users {
39       key uid;
40
41       leaf uid {
42         type uint64;
43       }
44
45       leaf attr {
46         type uint8;
47       }
48     }
49   }
50
51   container foo {
52     uses first-grp;
53   }
54 }
55