BUG-5032: BGP Operational State
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / state / BGPSessionState.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.protocol.bgp.rib.spi.state;
10
11 import org.opendaylight.protocol.bgp.rib.spi.State;
12
13 /**
14  * BGP Operational Session State
15  */
16 public interface BGPSessionState {
17     /**
18      * Internal session state
19      *
20      * @return Internal session state
21      */
22     State getSessionState();
23
24     /**
25      * Additional Path capability
26      *
27      * @return true if supported
28      */
29     boolean isAddPathCapabilitySupported();
30
31     /**
32      * AS 4 Bytes capability
33      *
34      * @return true if supported
35      */
36     boolean isAsn32CapabilitySupported();
37
38     /**
39      * Graceful Restart
40      *
41      * @return true if supported
42      */
43     boolean isGracefulRestartCapabilitySupported();
44
45     /**
46      * Multiprotocol capability
47      *
48      * @return true if supported
49      */
50     boolean isMultiProtocolCapabilitySupported();
51
52     /**
53      * Router Refresh Capability
54      *
55      * @return true if supported
56      */
57     boolean isRouterRefreshCapabilitySupported();
58 }