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