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