a33b3533888836bee583e11d08f38866b43269b0
[smo/teiv.git] /
1 module length-test-module-typedefs-faulty {
2
3     namespace "urn:rdns:o-ran:oammodel:length-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 typeStringNoLength {
17         type string;
18     }
19
20     typedef typeStringWithLength {
21         type string {
22             length 20..10;
23         }
24     }
25
26     typedef typeUsingTypeStringWithLength {
27         type this:typeStringWithLength;
28     }
29
30     container cont1 {
31
32         leaf leaf1 {
33             type this:typeStringNoLength {
34                 length max..min;
35             }
36         }
37
38         leaf leaf2 {
39             type this:typeStringNoLength {
40                 length "90..20";
41             }
42         }
43
44         leaf leaf3 {
45             type this:typeStringNoLength {
46                 length "10|10";
47             }
48         }
49
50         leaf leaf4 {
51             type this:typeStringWithLength;
52         }
53
54         leaf leaf5 {
55             type this:typeUsingTypeStringWithLength;
56         }
57
58         leaf leaf6 {
59             type this:typeUsingTypeStringWithLength {
60                 length "45..7";
61             }
62         }
63
64     }
65
66 }