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