Improve NetconfDeviceCommunicator error checking 40/110340/4
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 11:33:47 +0000 (12:33 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 12:20:35 +0000 (13:20 +0100)
commit9705ef728c35651a4f2a5c8953b0bf2dbf703beb
tree5c0205f15ecb157d8802b49df75ac908f75e2315
parente91ff2c6178d04b213fc2d7f26ec976d8f91f58d
Improve NetconfDeviceCommunicator error checking

Use Future.cause() to discern failures -- meaning we have a non-null
cause in the error path.

Change-Id: Ifb88cfcf666d1aea99c09189992d80224c0862e1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugins/netconf-client-mdsal/src/main/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceCommunicator.java
plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceCommunicatorTest.java