Changed vpnmanager directory structure
[vpnservice.git] / vpnmanager / vpnmanager-api / src / main / yang / odl-l3vpn.yang
1 module odl-l3vpn {
2     namespace "urn:opendaylight:l3vpn";
3     prefix odl-l3vpn;
4
5     import yang-ext {prefix ext; revision-date "2013-07-09";}
6     import l3vpn { prefix l3vpn; revision-date "2014-08-15"; }
7
8     revision "2013-09-11" {
9         description "L3 VPN Service module";
10     }
11
12     grouping adjacency-list{
13         list adjacency{
14             key "ip_address";
15             leaf nextHopId { type uint32;}
16             leaf ip_address {type string;}
17             leaf label {type uint32;} /* optional */
18             leaf mac_address {type string;} /* optional */
19         }
20     }
21         
22         grouping vpn-route-list{
23                 leaf-list route-entry-id{
24                         type uint32;
25                 }
26         }
27
28     augment "/l3vpn:vpn-interfaces/l3vpn:vpn-interface" {
29         ext:augment-identifier "adjacencies";
30         uses adjacency-list;
31     }
32
33     augment "/l3vpn:vpn-instances/l3vpn:vpn-instance" {
34         leaf vpn-id { type uint32;}
35                 uses vpn-route-list;
36     }
37
38 }