46904a1176b8000778e31eb014d4503e6a7e3998
[bgpcep.git] / bgp / rib-impl / src / main / yang / bgp-stats-rib-impl.yang
1 module bgp-stats-rib-impl {
2     namespace "urn:opendaylight:params:xml:ns:yang:controller:bgp:stats:rib:impl";
3     prefix "bgp-stats-rib-impl";
4
5     import bgp-rib-impl { prefix rib-impl; revision-date 2016-06-06; }
6     import bgp-multiprotocol { prefix bgp-mp; revision-date 2013-09-19; }
7     import ietf-yang-types { prefix yang; revision-date 2013-07-15; }
8
9     organization "Brocade Communications Systems, Inc.";
10     contact "Kevin Wang <kwang@brocade.com>";
11
12     description
13         "This module contains the base data model of BGP render statistic.
14
15         Copyright (c) 2016 Brocade Communications Systems, Inc. All rights reserved.
16
17         This program and the accompanying materials are made available
18         under the terms of the Eclipse Public License v1.0 which
19         accompanies this distribution, and is available at
20         http://www.eclipse.org/legal/epl-v10.html";
21
22     revision 2016-06-06 {
23         description "Initial revision";
24     }
25
26     grouping bgp-render-stats {
27         container bgp-render-state {
28             uses rib-impl:bgp-rib-impl-identifiers;
29
30             leaf configured-peer-count {
31                 description "The total number of BGP peer configured to be associated with this RIB instance.";
32                 type yang:zero-based-counter32;
33             }
34
35             leaf connected-peer-count {
36                 description "The total number of BGP peer connected to this RIB instance.";
37                 type yang:zero-based-counter32;
38             }
39
40             leaf loc-rib-routes-count {
41                 description "The total number of routes in loc-rib.";
42                 type yang:zero-based-counter32;
43             }
44
45             list loc-rib-route-table {
46                 key "afi safi";
47                 uses bgp-mp:bgp-table-type;
48
49                 leaf routes-count {
50                     description "The total number of routes in table.";
51                     type yang:zero-based-counter32;
52                 }
53             }
54         }
55     }
56 }