Remove AsyncSshHandler.handleSshSessionCreated() 31/102731/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 08:44:52 +0000 (10:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 13:07:15 +0000 (15:07 +0200)
commit472c7476c32ca38469e58efb9da95dcb6cd9342e
tree74d63f4a5962cf6b03efc4881b8b6806c70a57aa
parent71cb1c46c65a764e2c0b7d4d50e3b54709f22fe5
Remove AsyncSshHandler.handleSshSessionCreated()

This method is the synchronized part of onConnectComplete(), move it
closer to its source and split out onAuthComplete(). Also switch to
using getException() to check for success/failure.

JIRA: NETCONF-905
Change-Id: Ic8a49491afa92d68cb0585538a3fc9ffb044e9cb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 811508380706eea604bab58f3725bc9bf64790aa)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java