blob: c73b6cf2dd723c93f654ecda078c56f063a00180 [file] [log] [blame]
Khen Nursimuluf8abbc92016-11-04 19:56:45 -04001module mix-simple-types {
2 yang-version "1";
3 namespace "http://rob.sh/yang/test/base-test";
4 prefix "foo";
5 organization "BugReports Inc";
6 contact "A bug reporter";
7
8 description
9 "A test module that checks that the plugin works OK";
10 revision 2014-01-01 {
11 description "april-fools";
12 reference "fooled-you";
13 }
14
15 container int-container {
16 description
17 "A container";
18 choice name {
19 case me {
20 leaf eight {
21 type int8;
22 description
23 "A test leaf for uint8";
24 }
25 }
26 case myself {
27 leaf nine {
28 type int16;
29 description "i am nine";
30 }
31 }
32 }
33 leaf ten {
34 type int16;
35 description "i am ten";
36 }
37 }
38
39 list user {
40 key "name";
41 leaf name {
42 type string;
43 }
44 leaf full-name {
45 type string;
46 }
47 leaf class {
48 type string;
49 }
50 }
51
52 container container1 {
53 description
54 "A container";
55 choice name {
56 case acase {
57 leaf a {
58 type boolean;
59 description
60 "A test leaf for uint8";
61 }
62 }
63 case bcase {
64 leaf b {
65 type binary;
66 description "i am nine";
67 }
68 }
69 }
70 leaf mleaf {
71 type string;
72 description "i am string";
73 }
74 leaf-list mleaf_list {
75 type string;
76 description "i am repeated string";
77 }
78 container inner-container {
79 description
80 "A container";
81 leaf mleaf1 {
82 type string;
83 description "i am leaf1";
84 }
85 leaf mleaf2 {
86 type string;
87 description "i am leaf2";
88 }
89 }
90 }
91}