b5c7be41d53098c20d5a7bed25027b6cecc6ebfa
[smo/teiv.git] /
1 module range-test-module-typedefs-faulty {
2
3     namespace "urn:rdns:o-ran:oammodel:range-test-module-typedefs-faulty";
4     prefix this;
5
6         description
7         "Copyright (C) 2024 Ericsson
8         Modifications Copyright (C) 2024 OpenInfra Foundation Europe";
9
10     revision "2019-10-16" {
11         description "initial revision";
12     }
13
14 // -------------------------- Ranges and typedefs that are incorrect --------------------
15
16     typedef typeInt8noRange {
17         type int8;
18     }
19
20     typedef typeInt64noRange {
21         type int64;
22     }
23
24     typedef typeUint8noRange {
25         type uint8;
26     }
27
28     typedef typeUint64noRange {
29         type uint64;
30     }
31
32     typedef typeInt8WithRange {
33         type int8 {
34             range 20..10;
35         }
36     }
37
38     typedef typeUsingTypeInt8WithRange {
39         type this:typeInt8WithRange;
40     }
41
42     container cont1 {
43
44         leaf leaf1 {
45             type this:typeInt8noRange {
46                 range max..min;
47             }
48         }
49
50         leaf leaf2 {
51             type this:typeInt8noRange {
52                 range "90..20";
53             }
54         }
55
56         leaf leaf3 {
57             type this:typeUint64noRange {
58                 range "10|10";
59             }
60         }
61
62         leaf leaf4 {
63             type this:typeInt8WithRange;
64         }
65
66         leaf leaf5 {
67             type this:typeUsingTypeInt8WithRange;
68         }
69
70         leaf leaf6 {
71             type this:typeUsingTypeInt8WithRange {
72                 range "45..7";
73             }
74         }
75
76     }
77
78 }