Clean up NetconfDevice shutdown 64/107264/5
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Aug 2023 09:08:47 +0000 (11:08 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Aug 2023 17:59:03 +0000 (19:59 +0200)
commitc775691891f930cba1f6f920cadd1fb4cf61d31b
tree2b53495460a5e3f22a15bab4b156b26f31b70080
parentfa0ff84c3da68ac8f9e33e08973b002fa035c3f2
Clean up NetconfDevice shutdown

When we fail to setup schemas, we should not be calling
onRemoteSessionDown(), as it ends up emitting two changes to
NetconfDeviceListener -- onDeviceDisconnected() and onDeviceFailed().

JIRA: NETCONF-1097
Change-Id: I1b9a3751accfa15791ac2c84a11ad31d51256f16
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugins/netconf-client-mdsal/src/main/java/org/opendaylight/netconf/client/mdsal/NetconfDevice.java
plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceTest.java