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.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
16 * BGP Operational Afi SafiS State.
18 public interface BGPAfiSafiState extends BGPGracelfulRestartState {
20 * is AfiSafi Supported.
22 * @param tablesKey tables Key
23 * @return true if Afi Safi was advertized to and by the neighbor
25 boolean isAfiSafiSupported(@Nonnull TablesKey tablesKey);
28 * Prefixes installed per specific tablekey.
30 * @param tablesKey tables Key
33 long getPrefixesInstalledCount(@Nonnull TablesKey tablesKey);
36 * Prefixed sent to the Peer count.
38 * @param tablesKey tablesKey Type
39 * @return Prefixes sent count
41 long getPrefixesSentCount(@Nonnull TablesKey tablesKey);
44 * Prefixed received from the peer count.
46 * @param tablesKey tablesKey Type
47 * @return Prefixed received count
49 long getPrefixesReceivedCount(@Nonnull TablesKey tablesKey);
52 * List of TablesKey - Afi Safi Advertized to the neighbor.
57 Set<TablesKey> getAfiSafisAdvertized();
60 * List of TablesKey - Afi Safi Advertized by neighbor.
65 Set<TablesKey> getAfiSafisReceived();