282e24245907c1c7bee722b002e2b6ae644fe6d2
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug4933 / correct / foo.yang
1 module foo {
2     yang-version 1;
3     namespace "foo";
4     prefix foo;
5
6     container my-container {
7         leaf-list my-leaf-list {
8             type string;
9             max-elements 5;
10             must "0 != 1";
11         }
12     }
13
14     deviation /my-container/my-leaf-list {
15         deviate add {
16             min-elements 1;
17         }
18     }
19
20     deviation /my-container/my-leaf-list {
21         deviate replace {
22             max-elements 10;
23         }
24     }
25
26     deviation /my-container/my-leaf-list {
27         deviate delete {
28             must "0 != 1";
29         }
30     }
31
32     container my-container2 {
33     }
34
35     deviation /my-container2 {
36         deviate not-supported;
37     }
38 }