Fixed possible race condition when using BGP as speaker. 45/24745/3
authorDana Kutenicsova <dkutenic@cisco.com>
Tue, 4 Aug 2015 07:24:41 +0000 (09:24 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 4 Aug 2015 10:41:16 +0000 (10:41 +0000)
commitc27ebb404476d713300ade468818a76e16401402
tree704f1fb278bba9b642d490b53b71b3a7b415e6f7
parentd1ca3ef123903a28d89cce7fc3dcb918b662ded7
Fixed possible race condition when using BGP as speaker.

There is a short period of time when channel is active, but ODL
is yet to send Open and the peer sends Open. In this case we
would throw a Notify exception (unexpected messages) which is not
correct. Expect also Open when in IDLE state.

Change-Id: I7e4406ab1d8c29fac8ca56d9a6c797bb00349504
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/AbstractBGPSessionNegotiator.java