2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.protocol.bgp.rib.spi.state;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.protocol.bgp.rib.RibReference;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.BgpId;
19 * Representing RIB Operational State information.
21 * Total Paths / Total Prefixes counters, representing the paths / prefixes installed on Loc-rib
23 public interface BGPRibState extends RibReference {
25 * Indicates whether this instance is being actively managed and updated.
32 * Prefixes count per tablesKey Type.
34 * @return Prefixes count
37 Map<TablesKey, Long> getTablesPrefixesCount();
40 * Mapped Total Paths Count per TableKey.
42 * @return Prefixes count
45 Map<TablesKey, Long> getPathsCount();
48 * Total Paths Installed.
52 long getTotalPathsCount();
55 * Total Prefixes Installed.
59 long getTotalPrefixesCount();
62 * Total Path Installed per specific TableKey.
64 * @param tablesKey table key
67 long getPathCount(TablesKey tablesKey);
70 * Total Prefixes Installed per specific TableKey.
72 * @param tablesKey table key
75 long getPrefixesCount(TablesKey tablesKey);
88 * @return BGP identifier