Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / augment-relative-xpath-models / augment-abstract-topology@2013-05-03.yang
1 module augment-abstract-topology {
2     yang-version 1;
3     namespace "urn:model:augment:abstract:topology";
4     prefix "atp";
5
6     import ietf-interfaces {
7         prefix "if";
8         revision-date 2012-11-15;
9     }
10
11     import abstract-topology {
12         prefix "at";
13         revision-date 2013-02-08;
14     }
15
16     revision "2013-05-03" {
17     }
18
19     augment "/at:topology" {
20         container interfaces {
21             list interface {
22                 key "interface-id";
23
24                 leaf interface-id {
25                     type leafref {
26                         path "/if:interfaces/if:interface/if:name";
27                     }
28                 }
29
30                 leaf-list higher-layer-if {
31                     type leafref {
32                         path "/if:interfaces/if:interface/if:higher-layer-if";
33                     }
34                 }
35             }
36         }
37     }
38
39     augment "/at:topology/at:network-links/at:network-link" {
40         container tunnels {
41             list tunnel {
42                 key "tunnel-id";
43
44                 leaf tunnel-id {
45                     type leafref {
46                         path "../../../at:link-id";
47                     }
48                 }
49             }
50         }
51     }
52
53     augment "/at:topology/at:network-links/at:network-link" {
54         leaf interface {
55             type leafref {
56                 path "../../../atp:interfaces/atp:interface/atp:interface-id";
57             }
58         }
59     }
60 }