BUG-8156 Terminate PCEP session properly when ServerSessionManager is closed 29/54929/20
authorKevin Wang <kevixw@gmail.com>
Wed, 5 Apr 2017 01:08:07 +0000 (18:08 -0700)
committerKevin Wang <kevixw@gmail.com>
Thu, 22 Jun 2017 19:48:40 +0000 (12:48 -0700)
commit361265e3d13003bc3bfe75c888c40713ecbb36de
tree14dffcc65eeae48e78fbf7b71eebb4b6a05ef1ed
parentedd1a955eb096d0d725a4e415de0112e398d5446
BUG-8156 Terminate PCEP session properly when ServerSessionManager is closed

When the PCEP topology provider is loading the configuration initially,
the ServerSessionManager will be restarted.  Any new PCEP connection
coming in during this period will be rejected by the ServerSessionManager.

This patch is to terminate these rejected PCEP session properly when above
situation happens, so that the session can be established successfully
in the next retry.

Change-Id: Ifa3366c97025a0b31fb7d3ee50b1142f63a6209c
Signed-off-by: Kevin Wang <kevixw@gmail.com>
pcep/api/src/main/java/org/opendaylight/protocol/pcep/PCEPSession.java
pcep/api/src/main/java/org/opendaylight/protocol/pcep/PCEPSessionListener.java
pcep/api/src/main/java/org/opendaylight/protocol/pcep/TerminationReason.java
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImpl.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImplTest.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/SimpleSessionListener.java
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/AbstractTopologySessionListener.java
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/ServerSessionManager.java
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/SessionListenerState.java
pcep/topology-provider/src/test/java/org/opendaylight/bgpcep/pcep/topology/provider/AbstractPCEPSessionTest.java
pcep/topology-provider/src/test/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListenerTest.java