sonugupta-huawei | aa6791e | 2017-02-09 12:38:43 +0530 | [diff] [blame] | 1 | module 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 | |||||
21 | leaf pretzel { | ||||
22 | type empty; | ||||
23 | } | ||||
24 | |||||
25 | choice bear { | ||||
26 | case type { | ||||
27 | leaf kingfisher { | ||||
28 | type empty; | ||||
29 | } | ||||
30 | |||||
31 | leaf redbull { | ||||
32 | type empty; | ||||
33 | } | ||||
34 | } | ||||
35 | } | ||||
36 | } | ||||
37 | case latenight { | ||||
38 | leaf chocolate { | ||||
39 | type enumeration { | ||||
40 | enum dark; | ||||
41 | enum milk; | ||||
42 | enum first-available; | ||||
43 | } | ||||
44 | } | ||||
45 | } | ||||
46 | } | ||||
47 | } | ||||
48 | |||||
49 | leaf bool { | ||||
50 | type boolean; | ||||
51 | } | ||||
52 | |||||
53 | leaf-list boolean { | ||||
54 | type boolean; | ||||
55 | } | ||||
56 | } |