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
8 package org.opendaylight.protocol.bgp.rib.spi.state;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
15 * BGP Operational Afi SafiS State.
17 public interface BGPAfiSafiState extends BGPLlGracelfulRestartState {
19 * is AfiSafi Supported.
21 * @param tablesKey tables Key
22 * @return true if Afi Safi was advertized to and by the neighbor
24 boolean isAfiSafiSupported(@NonNull TablesKey tablesKey);
27 * Prefixes installed per specific tablekey.
29 * @param tablesKey tables Key
32 long getPrefixesInstalledCount(@NonNull TablesKey tablesKey);
35 * Prefixed sent to the Peer count.
37 * @param tablesKey tablesKey Type
38 * @return Prefixes sent count
40 long getPrefixesSentCount(@NonNull TablesKey tablesKey);
43 * Prefixed received from the peer count.
45 * @param tablesKey tablesKey Type
46 * @return Prefixed received count
48 long getPrefixesReceivedCount(@NonNull TablesKey tablesKey);
51 * List of TablesKey - Afi Safi Advertized to the neighbor.
55 @NonNull Set<TablesKey> getAfiSafisAdvertized();
58 * List of TablesKey - Afi Safi Advertized by neighbor.
62 @NonNull Set<TablesKey> getAfiSafisReceived();