blob: 53a4109578f2e26bcc8b5ba1ee753573791af5a0 [file] [log] [blame]
jingane308fc12017-03-03 01:47:31 -08001module jsonlist {
2
3 yang-version 1;
4
5 namespace "jsonlist";
6
7 prefix "l";
8
9 organization "ON-LAB";
10
11 description "This module defines for list.";
12
13 revision "2016-06-24" {
14 description "Initial revision.";
15 }
16
17 container top1 {
18 list l1 {
19 key "k1 k2 k3";
20 leaf k1 {
21 type string;
22 }
23
24 leaf k2 {
25 type string;
26 }
27
28 leaf k3 {
29 type string;
30 }
31
32 container c1 {
33 leaf leaf_c1 {
34 type string;
35 }
36 }
37 }
38
39 container c2 {
40 leaf-list leaflist1 {
41 type string;
42 }
sonugupta-huawei101310f2018-01-04 10:26:22 +053043 leaf leaf1 {
44 type int8;
45 }
jingane308fc12017-03-03 01:47:31 -080046
sonugupta-huawei101310f2018-01-04 10:26:22 +053047 leaf leaf2 {
48 type int16;
49 }
50
51 leaf leaf3 {
52 type int32;
53 }
54
55 leaf leaf4 {
56 type uint8;
57 }
58
59 leaf leaf5 {
60 type uint16;
61 }
62
63 leaf leaf6 {
64 type uint32;
65 }
66
67 leaf leaf7 {
68 type int64;
69 }
70
71 leaf leaf8 {
72 type uint64;
73 }
74
75 leaf leaf9 {
76 type boolean;
77 }
78
79 leaf leaf10 {
80 type decimal64 {
81 fraction-digits 1;
82 }
83 }
84
85 leaf-list ll1 {
86 type int8;
87 }
88
89 leaf-list ll2 {
90 type int16;
91 }
92
93 leaf-list ll3 {
94 type int32;
95 }
96
97 leaf-list ll4 {
98 type uint8;
99 }
100
101 leaf-list ll5 {
102 type uint16;
103 }
104
105 leaf-list ll6 {
106 type uint32;
107 }
108
109 leaf-list ll7 {
110 type int64;
111 }
112
113 leaf-list ll8 {
114 type uint64;
115 }
116
117 leaf-list ll9 {
118 type boolean;
119 }
120
121 leaf-list ll10 {
122 type decimal64 {
123 fraction-digits 1;
124 }
125 }
126 }
jingane308fc12017-03-03 01:47:31 -0800127 }
128}