Clean up NetconfDevice shutdown 76/107276/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 5 Aug 2023 09:08:47 +0000 (11:08 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Aug 2023 08:28:23 +0000 (10:28 +0200)
commita80115e1c14f3f8ecca9e25f67e06885fc1bf3c5
tree2de6d150835240b760212307ea630d368b4c3b19
parentc68031188d59b77795c00cf510b62ffe164a93fb
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>
(cherry picked from commit c775691891f930cba1f6f920cadd1fb4cf61d31b)
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