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;
11 import javax.annotation.Nonnull;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.TablesKey;
15 * BGP Operational Graceful Restart State
17 public interface BGPGracelfulRestartState {
19 * is Graceful Restart Supported advertized to neighbor
21 * @param tablesKey tables Key
22 * @return true if Afi Safi was advertized to neighbor
24 boolean isGracefulRestartAdvertized(@Nonnull TablesKey tablesKey);
27 * is Graceful Restart Supported advertized by neighbor
29 * @param tablesKey tables Key
30 * @return true if Afi Safi was advertized by neighbor
32 boolean isGracefulRestartReceived(TablesKey tablesKey);
35 * This flag indicates whether the local neighbor is currently restarting
37 * @return local restarting state
39 boolean isLocalRestarting();
42 * The period of time (advertised by the peer) that the peer expects a restart of a
47 int getPeerRestartTime();
50 * This flag indicates whether the remote neighbor is currently in the process of
51 * restarting, and hence received routes are currently stale
53 * @return peer is restarting
55 boolean isPeerRestarting();