Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / augment-test-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     organization "OPEN DAYLIGHT";
17     contact "http://www.opendaylight.org/";
18
19     revision "2013-05-03" {
20         reference "http://www.opendaylight.org/";
21     }
22
23     augment "/at:topology" {
24         container interfaces {
25             list interface {
26                 key "interface-id";
27
28                 leaf interface-id {
29                     type leafref {
30                         path "/if:interfaces/if:interface/if:name";
31                     }
32                 }
33
34                 leaf-list higher-layer-if {
35                     type leafref {
36                         path "/if:interfaces/if:interface/if:higher-layer-if";
37                     }
38                 }
39             }
40         }
41     }
42
43     augment "/at:topology/at:network-links/at:network-link" {
44         container tunnels {
45             list tunnel {
46                 key "tunnel-id";
47
48                 leaf tunnel-id {
49                     type int32;
50                 }
51                 
52                 container foo {
53                     leaf bar {
54                         type string;
55                     }
56                 }
57             }
58         }
59     }
60
61     augment "/at:topology/at:network-links/at:network-link" {
62         leaf interface {
63             type leafref {
64                 path "/at:topology/atp:interfaces/atp:interface/atp:interface-id";
65             }
66         }
67     }
68 }