Fix for deviation list mapping in Restconf
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / resources / modules / restconf-module-testing / deviator-test@2019-06-11.yang
1 module deviator-test {
2   yang-version 1.1;
3   namespace "http://tech/pantheon/deviator-test";
4   prefix dev;
5
6   organization
7       "PANTHEON.tech s.r.o.";
8
9   import deviatee-test {
10     prefix dv;
11     revision-date 2019-06-11;
12   }
13
14   description
15     "Prepared to set deviations";
16
17   revision 2019-06-11 {
18     description
19       "Deviation test";
20   }
21
22   deviation "/dv:test-container/dv:comment" {
23     deviate add {
24       must
25         "(../dv:comment = 'TEST' or ../dv:comment = 'TEST2')" {
26         error-message "Invalid comment for Deviation test";
27         description
28           "This is just a simple deviation test";
29       }
30     }
31   }
32 }