YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / rfc7950 / bug6887 / foo10-valid.yang
1 module foo {
2     namespace foo;
3     prefix foo;
4
5     revision 2017-02-21;
6
7     extension ext;
8
9     typedef my-base-enumeration-type {
10         type enumeration {
11             enum white {
12                 value 1;
13             }
14             enum yellow {
15                 value 2;
16             }
17             enum red {
18                 value 3;
19             }
20             enum black {
21                 value 4;
22             }
23         }
24     }
25
26     leaf my-enumeration-leaf {
27         type my-base-enumeration-type {
28             foo:ext;
29         }
30     }
31 }