Fix NETCONF session(channel) activation for the CallHome(over TLS) 48/94248/4
authorOleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
Tue, 15 Dec 2020 13:55:16 +0000 (15:55 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 16 Dec 2020 18:21:11 +0000 (18:21 +0000)
commitec978f18df800cd51d882d4b3c0bfa7b3fa72fb3
tree670d9fb20ead23234517b238ae286487e37c2046
parentc1e3bd78655024f8954772f536d1f2eab5cf4b6b
Fix NETCONF session(channel) activation for the CallHome(over TLS)

This patch fixes an issue when activation always fails with a message
saying that "Session is already activated". The root cause is the behavior
of the compareAndExchange method(returns the witness value, which will
be the same as the expected value if successful).

JIRA: NETCONF-5
Change-Id: Ib9b0acead1091c8e881330c22b99c9138605e1f1
Signed-off-by: Oleksii Mozghovyi <oleksii.mozghovyi@pantheon.tech>
netconf/callhome-protocol/src/main/java/org/opendaylight/netconf/callhome/protocol/tls/CallHomeTlsSessionContext.java