bbccea596d5a3ee408eb34df4c925b8d5439fe6d
[bgpcep.git] / bgp / l3vpn / src / main / yang / bgp-vpn.yang
1 module bgp-vpn {
2     namespace "urn:opendaylight:params:xml:ns:yang:bgp-vpn";
3     prefix "bgp-vpn";
4
5     import bgp-labeled-unicast { prefix bgp-lu; revision-date 2018-03-29; }
6     import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
7     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
8     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
9     import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
10
11     organization "Brocade Communications Systems, Inc.";
12     contact "Kevin Wang <kwang@brocade.com>";
13
14     description
15         "This module contains the base data model of a BGP message.
16         It defines the common part of both L3VPN-IPv4 and L3VPN-IPv6 model.
17
18         Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
19
20         This program and the accompanying materials are made available
21         under the terms of the Eclipse Public License v1.0 which
22         accompanies this distribution, and is available at
23         http://www.eclipse.org/legal/epl-v10.html";
24
25     revision "2018-03-29" {
26         description "Add support for add-path for all afi/safi.";
27     }
28
29     revision "2017-12-07" {
30         description "Add support for add-path in base BGP NLRI.";
31     }
32
33     revision 2016-04-13 {
34         description "Initial version";
35     }
36
37     grouping l3vpn {
38         uses bgp-lu:labeled-unicast;
39         uses bgp-t:route-distinguisher-grouping;
40     }
41
42     grouping l3vpn-ip-destination-type {
43         list vpn-destination {
44             uses l3vpn;
45             uses bgp-msg:path-id-grouping;
46         }
47     }
48
49     grouping l3vpn-ip-route {
50         list vpn-route {
51             key "route-key path-id";
52             uses l3vpn;
53             uses bgp-rib:route;
54         }
55     }
56 }