[NETCONF-1200] Netconf device stays connected even when unavailable Created: 20/Nov/23  Updated: 26/Nov/23  Resolved: 26/Nov/23

Status: Resolved
Project: netconf
Component/s: netconf
Affects Version/s: 7.0.0
Fix Version/s: 7.0.0

Type: Bug Priority: Medium
Reporter: Peter Suna Assignee: Ruslan Kashapov
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2023-11-20 123327.png    
Issue Links:
Relates
relates to NETCONF-1108 Convert NETCONF client-side to transp... Resolved

 Description   

The device remains connected in NETCONF even when it is unreachable.

How to reproduce:
1) Connect device:

curl --request GET 'http://192.168.56.100:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=netopeer' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/json' \
--data '{
    "node": [
        {
            "node-id": "netopeer",
            "netconf-node-topology:port": 830,
            "netconf-node-topology:reconnect-on-changed-schema": false,
            "netconf-node-topology:connection-timeout-millis": 20000,
            "netconf-node-topology:tcp-only": false,
            "netconf-node-topology:max-connection-attempts": 5,
            "login-password-unencrypted": {
                "netconf-node-topology:username": "netconf",
                "netconf-node-topology:password": "netconf"
            },
            "netconf-node-topology:sleep-factor": 1.5,
            "netconf-node-topology:host": "127.0.0.1",
            "netconf-node-topology:between-attempts-timeout-millis": 2000,
            "netconf-node-topology:keepalive-delay": 20
        }
    ]
}'

2) Verify that the device is in a connected state.
3) Turn off the device.

This issue was introduced with the following commit:
https://git.opendaylight.org/gerrit/c/netconf/+/108253


Generated at Wed Feb 07 20:16:55 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.