BUG-7937: Fix BGPTerminationReason 70/53070/1
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Wed, 8 Mar 2017 16:26:25 +0000 (17:26 +0100)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 9 Mar 2017 11:01:24 +0000 (11:01 +0000)
commit41296399260357ea6280f5b1ebab4aeca6a78d2a
tree1abed654a091db95e676b5d3f987b6b95aaeadbb
parent45fc103ec2653e3411d2f10a2cc0da3fd71cc104
BUG-7937: Fix BGPTerminationReason

When closing the session because of some error
2 Notify messages are sent. One containing the
reason and other with CEASE.
Fix by dont send CEASE Termination Notification
if already other termination notification has
been sent.

Change-Id: Ibfabd7cfb038bef7a452a7458cd5cc1e6fa4b9a7
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
(cherry picked from commit d9a7ab7217f7d14c96356db48e7d6dcdd00601ba)
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPSessionImpl.java