1 module inter-vpn-link {
3 namespace "urn:opendaylight:params:xml:ns:yang:netvirt:inter-vpn-link";
4 prefix "inter-vpn-link";
6 import ietf-inet-types { prefix inet; revision-date "2013-07-15"; }
8 import ietf-yang-types { prefix yang; }
10 import config { prefix config; revision-date 2013-04-05; }
13 "Service definition for inter-vpn-link project";
15 revision "2016-03-11" {
20 grouping vpn-endpoint-attribs {
24 description "UUID of the VPN to which this endpoint belongs to";
29 type inet:ipv4-address;
30 description "IP address of the endpoint";
35 grouping vpn-endpoint-state-attribs {
38 description "UUID of the VPN to which this endpoint belongs to";
44 description "list of DPNs where this endpoint of the Link has been instantiated";
53 container inter-vpn-links {
56 max-elements "unbounded";
62 description "Inter VPN link name";
66 container first-endpoint {
67 uses vpn-endpoint-attribs;
70 container second-endpoint {
71 uses vpn-endpoint-attribs;
74 leaf bgp-routes-leaking {
77 description "Flag to enable the leaking of BGP routes learnt from one VPN to another VPN";
80 must "first-endpoint and second-endpoint"; // To ensure both endpoints are present
84 container inter-vpn-link-states {
85 list inter-vpn-link-state {
86 key "inter-vpn-link-name";
88 leaf inter-vpn-link-name {
97 description "Holds the current state of the InterVPN Link";
100 container first-endpoint-state {
101 uses vpn-endpoint-state-attribs;
104 container second-endpoint-state {
105 uses vpn-endpoint-state-attribs;
108 leaf error-description {
114 notification inter-vpn-link-creation-error {
115 container inter-vpn-link-creation-error-message {