blob: 66b2f8acc626da63e3fb1c33e4d407c0ff94482a [file] [log] [blame]
Bharat saraswala542a362017-03-02 21:43:59 +05301module choice-case {
2
3 yang-version 1;
4
5 namespace "yrt:choice-case";
6
7 prefix "choice";
8
9 organization "ON-LAB";
10
11 description "This module defines for choice-case.";
12
13 revision "2016-06-24" {
14 description "Initial revision.";
15 }
16
17 choice snack {
18 case sportsarena {
19
20 leaf pretzel {
21 type empty;
22 }
23
24 choice bear {
25 case type {
26 leaf light {
27 type empty;
28 }
29 }
30
31 case add-on {
32 choice snacks {
33 case chips {
34 leaf-list potato {
35 type empty;
36 }
37
38 list banana {
39 config false;
40 leaf l1 {
41 type string;
42 }
43 }
44
45 container cold-drink {
46 leaf-list flavor {
47 type string;
48 }
49 }
50 }
51 }
52 }
53 }
54 }
55 case latenight {
56 leaf chocolate {
57 type enumeration {
58 enum dark;
59 enum milk;
60 enum first-available;
61 }
62 }
63 }
64 }
65}