Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / augment-test / augment-in-augment / baz.yang
1 module baz {
2     yang-version 1;
3     namespace "urn:opendaylight.baz";
4     prefix "baz";
5
6     import bar {
7         prefix "br";
8         revision-date 2013-10-14;
9     }
10
11     organization "opendaylight";
12     contact "http://www.opendaylight.org/";
13
14     revision "2013-10-15" {
15         reference " WILL BE DEFINED LATER";
16     }
17
18
19     augment "/br:interfaces/br:ifEntry" {
20         when "if:ifType='ds0'";
21         container augment-holder {
22             description "Description for augment holder";
23         }
24     }
25
26     augment "/br:interfaces/br:ifEntry" {
27         when "if:ifType='ds2'";
28         container augment-holder2 {
29             description "Description for augment holder";
30         }
31     }
32
33     augment "/br:controller/br:switch" {
34         leaf pause {
35             type int32;
36         }
37     }
38
39     grouping target {
40         anyxml data {
41             config true;
42             description "Copy of the source datastore subset.";
43             mandatory false;
44             must "test-condition-text";
45             reference "test-no-reference";
46             status "obsolete";
47             when "test-when-text";
48         }
49         choice how {
50             description "test choice description";
51             default interval;
52             case interval {
53                 leaf interval {
54                     type uint16;
55                     default 30;
56                     units minutes;
57                 }
58             }
59             case daily {
60                 leaf daily {
61                     type empty;
62                 }
63                 leaf time-of-day {
64                     type string;
65                     units 24-hour-clock;
66                     default 1am;
67                 }
68             }
69         }
70         leaf address {
71             type string;
72             description "Target IP address";
73             mandatory true;
74         }
75         container port {
76             description "Target port container";
77         }
78         list addresses {
79             key "id";
80             leaf id {
81                 type int8;
82             }
83         }
84         grouping target-inner {
85             description "target-inner default description";
86             leaf inner-grouping-id {
87                 type int8;
88             }
89         }
90         
91         br:opendaylight awesome;
92     }
93
94 }