YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / rfc7950 / list-keys-test / incorrect-list-keys-test.yang
1 module incorrect-list-keys-test {
2     yang-version 1.1;
3     namespace "incorrect-list-keys-test";
4     prefix "test";
5
6     revision 2017-02-06 {
7         description "Bug 6855: Test for disallowing WHEN on list key";
8     }
9
10     list invalid-list-a {
11         leaf a1 {
12             type string;
13         }
14         leaf a2 {
15             when "../a1 = 'key-a1'";
16             type int32;
17         }
18         key "a1 a2";
19     }
20 }