YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / bugs / bug8831 / valid / example-model2.yang
1 module example-model2 {
2     yang-version 1.1;
3     namespace "http://www.example2.com";
4     prefix ex2;
5
6     revision 2017-07-10;
7
8     feature my-feature {
9         description "my feature";
10     }
11
12     typedef enum-last {
13         type union {
14             type uint16;
15             type enumeration {
16                 enum "any" {
17                     if-feature my-feature;
18                 }
19             }
20         }
21     }
22
23     container top {
24         leaf enum-last-leaf {
25             type enum-last;
26             default "16";
27         }
28     }
29 }