BGPCEP-701: Remove old statistics, keep only openconfig stats
[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 ietf-inet-types { prefix inet; revision-date 2013-07-15; }
8     import opendaylight-md-sal-binding {prefix mdsb; revision-date 2013-10-28; }
9
10     organization "Brocade Communications Systems, Inc.";
11     contact "Kevin Wang <kwang@brocade.com>";
12
13     description
14         "This module contains the base data model of BGP RIB implementation.
15
16         Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
17
18         This program and the accompanying materials are made available
19         under the terms of the Eclipse Public License v1.0 which
20         accompanies this distribution, and is available at
21         http://www.eclipse.org/legal/epl-v10.html";
22
23     revision 2016-06-06 {
24         description "Initial revision";
25     }
26
27     grouping bgp-rib-impl-identifiers {
28         leaf local-as {
29             description "Our local AS number. Needed by best selection path attribute.";
30             type inet:as-number;
31             mandatory true;
32         }
33
34         leaf bgp-rib-id {
35             description "Our local BGP identifier. Needed by best selection path attribute.";
36             mandatory true;
37             type bgp-t:bgp-id;
38         }
39
40         leaf rib-id {
41             description "Identifier of this RIB in local data store.";
42             type rib:rib-id;
43             mandatory true;
44         }
45
46         leaf cluster-id {
47             description "IBGP identifier. Needed by route reflection.";
48             reference "https://tools.ietf.org/html/rfc4456#section-7";
49             type bgp-t:cluster-identifier;
50         }
51     }
52 }