Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / augment-test / augment-in-augment / foo.yang
1 module foo {
2     yang-version 1;
3     namespace "urn:opendaylight.foo";
4     prefix "foo";
5
6     import bar {
7         prefix "br";
8         revision-date 2013-10-14;
9     }
10
11     import baz {
12         prefix "bz";
13         revision-date 2013-10-15;
14     }
15
16     organization "opendaylight";
17     contact "http://www.opendaylight.org/";
18
19     revision "2013-10-13" {
20         reference " WILL BE DEFINED LATER";
21     }
22
23
24     augment "/br:interfaces/br:ifEntry/bz:augment-holder" {
25         when "if:ifType='ds0'";
26         leaf ds0ChannelNumber {
27             type string;
28         }
29         leaf interface-id {
30             type leafref {
31                 path "/if:interfaces/if:interface/if:name";
32             }
33         }
34         container schemas {
35         }
36         choice odl {
37             leaf id {
38                 type int8;
39             }
40             case node1 {
41                 description "node1";
42             }
43             case node2 {
44                 description "node2";
45             }
46             container node3 {
47                 description "node3";
48             }
49         }
50     }
51
52
53     uses bz:target {
54         augment "how/interval" {
55             description "inner augment";
56             leaf name {
57                 type string;
58             }
59         }
60     }
61
62 }