blob: 58347957f11b4ce68a6a4137e0daf63f6405c8a6 [file] [log] [blame]
Vidyashree Rama13960652016-04-26 15:06:06 +05301module Test {
2 yang-version 1;
3 namespace http://huawei.com;
4 prefix Ant;
Bharat saraswal0663aff2016-10-18 23:16:14 +05305 container food {
Vidyashree Rama13960652016-04-26 15:06:06 +05306 choice snack {
7 case sports-arena {
8 leaf pretzel {
9 type string;
10 }
11 leaf beer {
12 type string;
13 }
14 }
15 case late-night {
16 leaf chocolate {
17 type string;
18 }
19 }
20 }
Bharat saraswal0663aff2016-10-18 23:16:14 +053021 container dinner {
22 leaf cheese {
23 type string;
24 }
25 }
26 choice snack2 {
27 case sports-arena {
28 leaf pretzel {
29 type string;
30 }
31 leaf beer {
32 type string;
33 }
34 }
35 case late-night {
36 leaf chocolate {
37 type string;
38 }
39 }
40 }
Vidyashree Rama13960652016-04-26 15:06:06 +053041 }
42}