Bug 8084 - FilterContentValidator.getKeyValues creates invalid YII key values
[netconf.git] / netconf / mdsal-netconf-connector / src / test / resources / yang / filter-validator-test-mod-0.yang
1 module filter-validator-test-mod-0 {
2     namespace "urn:dummy:mod-0";
3     prefix "mod-0";
4     revision "2016-03-01";
5
6     import config {
7         prefix map-test;
8         revision-date "2015-02-26";
9     }
10
11     identity foo {
12         description "dummy identity";
13     }
14
15     container mainroot {
16         leaf maincontent {
17             mandatory true;
18             type string;
19         }
20         container inner {
21             list inner-multi-key-list {
22                 key "id1 id2";
23                 leaf id1 {
24                     type string;
25                 }
26                 leaf id2 {
27                     type string;
28                 }
29             }
30         }
31         list choiceList {
32             key name;
33             leaf name {
34                 type string;
35             }
36             choice v {
37                 case a {
38                     leaf choice-leaf {
39                         type string;
40                     }
41                 }
42                 case b {
43                     container choice-cont {
44                         leaf content {
45                             type string;
46                         }
47                     }
48                 }
49             }
50         }
51
52         list multi-key-list {
53             key "id1 id2";
54             leaf id1 {
55                 type string;
56             }
57             leaf id2 {
58                 type string;
59             }
60         }
61
62         list multi-key-list2 {
63             key "id1 id2 id3 id4 id5 id6 id7 id8 id9 id10 id11 id12 id13";
64             leaf id1 {
65                 type string;
66             }
67             leaf id2 {
68                 type int8;
69             }
70             leaf id3 {
71                 type int16;
72             }
73             leaf id4 {
74                 type int32;
75             }
76             leaf id5 {
77                 type int64;
78             }
79             leaf id6 {
80                 type uint8;
81             }
82             leaf id7 {
83                 type uint16;
84             }
85             leaf id8 {
86                 type uint32;
87             }
88             leaf id9 {
89                 type uint64;
90             }
91             leaf id10 {
92                 type boolean;
93             }
94             leaf id11 {
95                 type decimal64{
96                     fraction-digits 2;
97                 }
98             }
99             leaf id12 {
100                 type identityref {
101                     base "foo";
102                 }
103             }
104             leaf id13 {
105                 type identityref {
106                     base "map-test:foo";
107                 }
108             }
109         }
110     }
111 }