YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / deviation-stmt-test / foo-imp.yang
1 module foo-imp {
2     namespace "fimp-ns";
3     prefix "fimp";
4
5     revision 2016-06-23;
6
7     container test-container {
8         leaf test-leaf {
9             type string;
10         }
11
12         leaf test-leaf-2 {
13             type string;
14         }
15
16         leaf-list test-leaf-list {
17             type int32;
18             min-elements 3;
19             must "daytime or time";
20             must "time or daytime";
21             units minutes;
22         }
23
24         list test-list {
25             key key-leaf;
26             unique "list-leaf-1 list-leaf-2";
27             unique "list-leaf-3 list-leaf-4";
28
29             leaf key-leaf {
30                 type string;
31             }
32
33             leaf list-leaf-1 {
34                 type string;
35             }
36
37             leaf list-leaf-2 {
38                 type string;
39             }
40
41             leaf list-leaf-3 {
42                 type string;
43             }
44
45             leaf list-leaf-4 {
46                 type string;
47             }
48         }
49     }
50 }