Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-impl / src / test / resources / grouping-test / grouping-definitions.yang
1 module grouping-definitions {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:grouping-definitions";
4     prefix "gd";
5
6     organization "opendaylight";
7     contact "asdf";
8
9     revision "2013-09-04" {
10     }
11
12
13     typedef int-ext {
14         type union {
15             type uint8;
16             type protocol-version;
17         }
18     }
19
20     typedef protocol-version {
21         type uint8 {
22             range 1..7;
23         }
24     }
25
26     grouping base-header {
27         leaf delete {
28             type uint32;
29             mandatory true;
30         }
31         leaf setup {
32             type uint32;
33             mandatory true;
34         }
35     }
36
37     grouping ieee754-32 {
38         reference "IEEE 754-2008";
39         leaf fraction {
40             type uint32 {
41                 range 0..1677215;
42             }
43             mandatory true;
44         }
45     }
46
47     grouping message-header {
48         leaf version {
49             type protocol-version;
50             default 1;
51         }
52         leaf type {
53             type int-ext;
54         }
55     }
56
57     grouping object {
58         uses object-header;
59
60         container box {
61         }
62     }
63
64     grouping object-header {
65         leaf processing-rule {
66             type boolean;
67         }
68         leaf ignore {
69             type boolean;
70         }
71     }
72
73     grouping rp-object {
74         uses object {
75             augment "box" {
76                 container order {
77                     uses base-header;
78                 }
79             }
80         }
81
82         leaf priority {
83             type uint8 {
84                 range 1..7;
85             }
86         }
87     }
88
89 }