079725c917cf15217e2a07c3d03d18d9bd4cf8d0
[bgpcep.git] / bgp / rib-impl / src / main / yang / bgp-rib-impl.yang
1 module bgp-rib-impl {
2     namespace "urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl:config";
3     prefix "bgp-rib-impl";
4
5     import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
6     import bgp-rib { prefix rib; revision-date 2013-09-25; }
7     import bgp-multiprotocol { prefix bgp-mp; revision-date 2013-09-19; }
8     import config { prefix config; revision-date 2013-04-05; }
9     import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
10     import ietf-yang-types { prefix yang; revision-date 2013-07-15; }
11     import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
12     import rpc-context { prefix rpcx; revision-date 2013-06-17; }
13
14     organization "Brocade Communications Systems, Inc.";
15     contact "Kevin Wang <kwang@brocade.com>";
16
17     description
18         "This module contains the base data model of BGP RIB implementation.
19
20         Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
21
22         This program and the accompanying materials are made available
23         under the terms of the Eclipse Public License v1.0 which
24         accompanies this distribution, and is available at
25         http://www.eclipse.org/legal/epl-v10.html";
26
27     revision 2016-06-06 {
28         description "Initial revision";
29     }
30
31     grouping bgp-rib-impl-identifiers {
32         leaf local-as {
33             description "Our local AS number. Needed by best selection path attribute.";
34             type uint32;
35             mandatory true;
36         }
37
38         leaf bgp-rib-id {
39             description "Our local BGP identifier. Needed by best selection path attribute.";
40             mandatory true;
41             type bgp-t:bgp-id;
42         }
43
44         leaf rib-id {
45             description "Identifier of this RIB in local data store.";
46             type rib:rib-id;
47             mandatory true;
48         }
49
50         leaf cluster-id {
51             description "IBGP identifier. Needed by route reflection.";
52             reference "https://tools.ietf.org/html/rfc4456#section-7";
53             type bgp-t:cluster-identifier;
54         }
55     }
56 }