blob: b42cdf93d0db45f03fb772a587614b5f3a03eccd [file] [log] [blame]
Gaurav Agrawalf5766422016-03-23 19:04:17 +05301module Test {
2 yang-version 1;
3 namespace http://huawei.com;
4 prefix Ant;
5 container food {
6 choice snack {
7 case sports-arena {
8 leaf pretzel {
9 type empty;
10 }
11 leaf beer {
12 type empty;
13 }
14 }
15 }
16 choice lunch {
17 case sports-arena {
18 leaf chocolate {
19 type enumeration {
20 enum dark;
21 enum milk;
22 enum first-available;
23 }
24 }
25 }
26 }
27 }
28}