Fix get and get-config ordering for netconf-mdsal
[controller.git] / opendaylight / netconf / mdsal-netconf-connector / src / test / resources / yang / mdsal-netconf-mapping-test.yang
1 module config {
2     yang-version 1;
3     namespace "urn:opendaylight:mdsal:mapping:test";
4     prefix "map";
5
6     revision "2015-02-26";
7
8     container mapping-nodes {
9
10         list multiple-keys {
11             key "key3 key1 key2";
12
13             leaf value1 {
14                 type string;
15             }
16
17             leaf key1 {
18                 type string;
19             }
20
21             leaf value2 {
22                 type string;
23             }
24
25             leaf key2 {
26                 type string;
27             }
28
29             leaf key3 {
30                 type string;
31             }
32         }
33
34         list mapping-node{
35             key "id";
36             leaf id {
37                 type string;
38             }
39
40             leaf content {
41                 type string;
42             }
43         }
44     }
45
46     container top {
47
48         container users {
49
50             list user {
51
52                 key "name";
53
54                 leaf name {
55                     type string;
56                 }
57
58                 leaf type {
59                     type string;
60                 }
61
62                 leaf full-name {
63                     type string;
64                 }
65
66                 container company-info {
67
68                     leaf dept {
69                         type string;
70                     }
71
72                     leaf id {
73                         type string;
74                     }
75                 }
76             }
77         }
78
79         container modules {
80
81             list module {
82
83                 key "id";
84
85                 leaf id {
86                     type string;
87                 }
88
89                 leaf type {
90                     type string;
91                 }
92
93                 leaf desc {
94                     type string;
95                 }
96             }
97         }
98
99         choice choice-node {
100             case a {
101                 leaf text {
102                     type string;
103                 }
104             }
105
106             case b {
107                 container text-cont {
108                     leaf text {
109                         type string;
110                     }
111                 }
112             }
113         }
114
115     } //top
116
117     augment "/map:top/map:choice-node" {
118         case c {
119             leaf augmented-case {
120                 type string;
121             }
122         }
123
124         case d {
125             container choice-wrapper {
126                 choice inner-choice {
127                     case ia {
128                         leaf text {
129                             type string;
130                         }
131                     }
132
133                     case ib {
134                         leaf text2 {
135                             type string;
136                         }
137                     }
138                 }
139             }
140         }
141     }
142
143     augment "/map:top/map:modules/" {
144         container augmented-container{
145             leaf identifier {
146                 type string;
147             }
148         }
149     }
150
151     augment "/map:top" {
152         container mid-level {
153             container low-level {
154                 container lowest-level {
155                     leaf-list note {
156                         type string;
157                     }
158                 }
159             }
160             container low-level2 {
161                 leaf-list note {
162                     type string;
163                 }
164             }
165         }
166     }
167 }