blob: e05c23547d857279d56365b63026d82e0a018850 [file] [log] [blame]
sonu gupta1bb37b82016-11-11 16:51:18 +05301module integer8 {
2
3 yang-version 1;
4
5 namespace "ydt.integer8";
6
7 prefix "integer8";
8
9 organization "ON-LAB";
10
11 description "This module defines for integer8 classifier.";
12
13 revision "2016-05-24" {
14 description "Initial revision.";
15 }
16
17 list multiRangeValidation {
18 config false;
19 leaf integer {
20 type int8 {
21 range "10..40 | 50..100";
22 }
23 }
24 leaf UnInteger {
25 type uint8 {
26 range "10..40 | 50..100";
27 }
28 }
29
30 leaf revInteger {
31 type int8 {
32 range "min .. 2 | 10 | 20..max";
33 }
34 }
35
36 leaf revUnInteger {
37 type uint8 {
38 range "min .. 2 | 10 | 20..max";
39 }
40 }
41 }
42
43
44 leaf negInt {
45 type int8 {
46 }
47 }
48
49 leaf posInt {
50 type int8 {
51 }
52 }
53
54 leaf minIntWithRange {
55 type int8 {
56 range "10 .. 100";
57 }
58 }
59
60 leaf midIntWithRange {
61 type int8 {
62 range "10 .. 100";
63 }
64 }
65
66 leaf maxIntWithRange {
67 type int8 {
68 range "10 .. 100";
69 }
70 }
71
72 leaf minUInt {
73 type uint8 {
74 }
75 }
76
77 leaf maxUInt {
78 type uint8 {
79 }
80 }
81
82 leaf minUIntWithRange {
83 type uint8 {
84 range "10 .. 100";
85 }
86 }
87
88 leaf midUIntWithRange {
89 type uint8 {
90 range "10 .. 100";
91 }
92 }
93
94 leaf maxUIntWithRange {
95 type uint8 {
96 range "10 .. 100";
97 }
98 }
99}