Fix NetconfNodeHandler.connect() accounting 77/107277/1
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 25 Jul 2023 12:20:45 +0000 (14:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Aug 2023 08:28:23 +0000 (10:28 +0200)
commit7d353c805ce8f7966b847c41c1dbcee7922614ed
tree5fb276c7a24696ad670311fdc3f21ab7f527eeb1
parenta80115e1c14f3f8ecca9e25f67e06885fc1bf3c5
Fix NetconfNodeHandler.connect() accounting

The accounting is off-by-one, as the first attempt, triggered through
connect() is not correctly accounter for.

This also adds a unit test to cover this and some other basic scenarios.

JIRA: NETCONF-1119
Change-Id: I02781e92423456460c0e780c657acae0e7bae9bf
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Matej Sramcik <matej.sramcik@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 950197562f24cdadcfaf5a6a1e65c4b7df0490c0)
apps/netconf-topology/src/main/java/org/opendaylight/netconf/topology/spi/NetconfNodeHandler.java
apps/netconf-topology/src/test/java/org/opendaylight/netconf/topology/spi/NetconfNodeHandlerTest.java [new file with mode: 0644]