blob: 861ef3ab1c9897e904c29119160e1c2e16a2202b [file] [log] [blame]
Bharat saraswala542a362017-03-02 21:43:59 +05301module food {
2
3 yang-version 1;
4
5 namespace "yrt:food";
6
7 prefix "foodType";
8
9 organization "ON-LAB";
10
11 description "This module defines for food.";
12
13 revision "2016-06-24" {
14 description "Initial revision.";
15 }
16
17 container food {
18 choice snack {
19 case sportsarena {
20 leaf pretzel {
21 type empty;
22 }
23
24 choice bear {
25 case type {
26 leaf kingfisher {
27 type empty;
28 }
29
30 leaf redbull {
31 type empty;
32 }
33 }
34 }
35 }
36 case latenight {
37 leaf chocolate {
38 type enumeration {
39 enum dark;
40 enum milk;
41 enum first-available;
42 }
43 }
44 }
45 }
46 leaf p1 {
janani b99fccd72017-07-13 19:14:44 +053047 type empty;
Bharat saraswala542a362017-03-02 21:43:59 +053048 }
49 leaf-list p2 {
50 type string;
51 }
52 }
53
54 container c2 {
55 leaf p3 {
56 type string;
57 }
58 }
59
60 leaf bool {
61 type boolean;
62 }
63
64 leaf-list boolean {
65 type boolean;
66 }
67}