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;
13 import javax.annotation.Nonnull;
14 import org.opendaylight.protocol.bgp.rib.RibReference;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.TablesKey;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.BgpId;
20 * Representing RIB Operational State information
22 * Total Paths / Total Prefixes counters, representing the paths / prefixes installed on Loc-rib
24 public interface BGPRIBState extends RibReference {
26 * Indicates whether this instance is being actively managed and updated
33 * Prefixes count per tablesKey Type
35 * @return Prefixes count
38 Map<TablesKey, Long> getPrefixesCount();
41 * Mapped Total Paths Count per TableKey
43 * @return Prefixes count
46 Map<TablesKey, Long> getPathsCount();
49 * Total Paths Installed
53 long getTotalPathsCount();
56 * Total Prefixes Installed
60 long getTotalPrefixesCount();
63 * Total Path Installed per specific TableKey
65 * @param tablesKey table key
68 long getPathCount(TablesKey tablesKey);
71 * Total Prefixes Installed per specific TableKey
73 * @param tablesKey table key
76 long getPrefixesCount(TablesKey tablesKey);
88 * @return BGP identifier