BUG-6616: BGP synchronization can happen after the session was closed 43/46343/1
authorClaudio D. Gasparini <cgaspari@cisco.com>
Tue, 27 Sep 2016 09:37:36 +0000 (11:37 +0200)
committerClaudio D. Gasparini <cgaspari@cisco.com>
Thu, 29 Sep 2016 09:17:10 +0000 (11:17 +0200)
commitefe39b06d82622014aac14b769536113206b28a3
tree155566a468bf6a09c5697f3afbb6e991a5485647
parent9f31c097e5311e2a194872f8c93d5d63ed2f1a30
BUG-6616: BGP synchronization can happen after the session was closed

Fix by handle message only when session is up.
-Handle exception in synchronation mode.
-Sort close of the session, removal of the peer
and send close reason message.

Change-Id: I21328f9a63d5360603f219cd3699b08874da318b
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPSessionImpl.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/SynchronizationAndExceptionTest.java [new file with mode: 0644]