Replaced 'controller' with 'yangtools' in all package names.
[yangtools.git] / yang-parser-impl / src / test / resources / simple-test / simple-nodes.yang
1 module simple-nodes {
2     yang-version 1;
3     namespace "urn:opendaylight:simple-nodes";
4     prefix "sn";
5
6     organization "opendaylight";
7
8     description
9         "test file containing yang data nodes";   
10
11     revision "2013-07-30" {
12         description
13             "Initial revision.";
14         reference "will be defined";
15     }
16
17     // NOTE: simple comment
18
19     anyxml data {
20         config false;
21         description "anyxml desc";
22         if-feature has-name;
23         mandatory true;
24         must "ifType != 'ethernet' or " +
25               "(ifType = 'ethernet' and ifMTU = 1500)" {
26              error-message "An ethernet MTU must be 1500";
27         }
28         must "ifType != 'atm' or " +
29               "(ifType = 'atm' and ifMTU <= 17966 and ifMTU >= 64)" {
30              error-app-tag "anyxml data error-app-tag";
31              error-message "An atm MTU must be  64 .. 17966";
32              description "an error occured in data";
33              reference "data must ref";
34         }     
35         reference "data ref";
36         status obsolete;
37         when "class != 'wheel'";
38     }
39
40 }