blob: bb3f6c9de7db5d3b209cb7fec6a6ae962659170c [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 case late-night {
16 leaf chocolate {
17 type enumeration {
18 enum dark;
19 enum milk;
20 enum first-available;
21 }
22 }
23 }
24 }
25 }
26}