423523f1ee620aa38a4b19eed60f64d770606ffd
[vpnservice.git] / vpnmanager-api / src / main / yang / bgp-l3vpn.yang
1 module bgp-l3vpn {
2     namespace "urn:opendaylight:l3vpn:bgp";
3     prefix bgp-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 bgp-neighbors {
12         description
13            "The top level container for the list of neighbours of the BGP router.";
14         list bgp-neighbor {
15             key "ip-address";
16             leaf as-number { type uint32; }
17             leaf ip-address { type string; mandatory true; }
18        }
19     }
20
21     grouping bgp-config {
22        description
23            "The top level container for BGP configuration";
24        leaf bgp-ip-address { type string; }
25        leaf bgp-router-id { type string; }
26        leaf bgp-as { type uint32; mandatory true; } 
27     }
28
29     augment "/l3vpn:vpn-instances" {
30         container bgp-config { 
31             uses bgp-config;
32         }
33         container bgp-neighbors { 
34             uses bgp-neighbors;
35         }
36     }
37 }
38