Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / types / union-with-bits / union-bits-model.yang
1 module unionbitsmodel {
2     namespace "urn:ubt";
3     prefix "ubt";
4
5     revision 2014-12-10 {
6     }
7
8     typedef port-state-v13 {
9         description
10             "Current state of the physical port. These are not configurable from the controller.";
11
12         type bits {
13             bit link_down {
14                 //description "No physical link present.";
15                 position 0;
16             }
17
18             bit blocked {
19                 //description "Port is blocked";
20                 position 1;
21             }
22
23             bit live {
24                 //description "Live for Fast Failover Group.";
25                 position 2;
26             }
27         }
28     }
29
30     typedef port-state-v10 {
31         description "Current state of the physical port. These are not configurable from the controller.";
32
33         type bits {
34             bit link_down {
35                 description "No physical link present.";
36                 position 0;
37             }
38
39             bit blocked {
40                     description "Port is blocked";
41                     position 1;
42                 }
43                 bit live {
44                     description "Live for Fast Failover Group.";
45                     position 2;
46                 }
47                 bit stp_listen {
48                     description "Not learning or relaying frames.";
49                 }
50             }
51         }
52
53     typedef my-union-type {
54         type union {
55             type port-state-v13;
56             type port-state-v10;
57         }
58     }
59 }