11010ee508614c52a16a285721c5dc81976eb614
[smo/teiv.git] /
1 module length-test-module-simple-faulty {
2
3     namespace "urn:rdns:o-ran:oammodel:length-test-module-simple-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 // -------------------------- Simple lengths that are faulty for a variety of reasons --------------------
15
16     container cont1 {
17
18         leaf leaf1 {
19             type string {
20                 length max..min;
21             }
22         }
23
24         leaf leaf2 {
25             type string {
26                 length max..300;
27             }
28         }
29
30         leaf leaf3 {
31             type string {
32                 length "-4000  ..   max";
33             }
34         }
35
36         leaf leaf4 {
37             type string {
38                 length "min..max | min..max";
39             }
40         }
41
42         leaf leaf5 {
43             type string {
44                 length "min  ..  100| 30..  max";
45             }
46         }
47
48         leaf leaf6 {
49             type string {
50                 length -100..1000;
51             }
52         }
53
54         leaf leaf7 {
55             type string {
56                 length "-50..-20 | -40..-30";
57             }
58         }
59
60         leaf leaf8 {
61             type string {
62                 length "min..-20 | -30 | -40";
63             }
64         }
65
66         leaf leaf9 {
67             type string {
68                 length min..-20|30|25;
69             }
70         }
71
72         leaf leaf10 {
73             type string {
74                 length "min | 10 | 40000000000000000000000000000000";
75             }
76         }
77
78         leaf leaf11 {
79             type string {
80                 length "blurb | 10..10 | 70";
81             }
82         }
83
84         leaf leaf12 {
85             type string {
86                 length MIN..max;
87             }
88         }
89     }
90 }