BUG-2109 : clear BGP session after it was already initialized
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / BGPSessionListener.java
index a56cb0f16bb714caae24a54ba41a5f137a5c8cc7..a6127ba9ca1e26455db0538c8a43e0ea509b9ca1 100644 (file)
@@ -15,4 +15,10 @@ import org.opendaylight.yangtools.yang.binding.Notification;
  */
 public interface BGPSessionListener extends SessionListener<Notification, BGPSession, BGPTerminationReason> {
 
+    /**
+     * Returns state of BGP session associated with this listener.
+     *
+     * @return false if session associated with this listener is null, true if its non-null
+     */
+    boolean isSessionActive();
 }