Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / semantic-statement-parser / simple-nodes-semantic.yang
1 module simple-nodes {
2     yang-version 1;
3     namespace "urn:opendaylight:"+
4         "simple-nodes";
5     prefix "sn";
6
7     organization "opendaylight";
8
9     import test {
10         prefix tst;
11     }
12
13     description
14         "test file containing yang data nodes";
15
16     revision "2013-07-30" {
17         description
18             "Initial revision.";
19         reference "will be defined";
20     }
21
22
23     typedef mytype {
24         type string;
25     }
26
27     // NOTE: simple comment
28
29
30
31     anyxml data {
32          config false;
33          description "anyxml desc";
34          if-feature has-name;
35          mandatory true;
36          must "ifType != 'ethernet' or " +
37                       "(ifType = 'ethernet' and ifMTU = 1500)" {
38             error-message "An ethernet MTU must be 1500";
39          }
40          must "ifType != 'atm' or " +
41                       "(ifType = 'atm' and ifMTU <= 17966 and ifMTU >= 64)" {
42                      error-app-tag "anyxml data error-app-tag";
43                      error-message "An atm MTU must be  64 .. 17966";
44                      description "an error occured in data";
45                      reference "data must ref";
46                 }
47          reference "data ref";
48          status obsolete;
49          when "class != 'wheel'";
50     }
51
52 }