BUG-7937: Fix BGPTerminationReason 21/53021/3
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Wed, 8 Mar 2017 16:26:25 +0000 (17:26 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 9 Mar 2017 10:28:56 +0000 (10:28 +0000)
commitd9a7ab7217f7d14c96356db48e7d6dcdd00601ba
treef29cef9e17247913c80ee19962b237e0f7467fb5
parent275861b5487e7e7028c183427ce45c85fa3631ee
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>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPSessionImpl.java