Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1261

Initial device connection fails due to unstable network conditions on device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • 7.0.5
    • 7.0.0
    • netconf

      When attempting to establish a Netconf connection with a device under unstable network conditions, the device is stuck in `connecting` state.

      Steps to reproduce:

      1. Start testtool with a huge amount of yang models, for example with Junos models.
      2. Set 50% packet loss for testtool device (tc qdisc add dev eth0 root netem loss 50%).
      3. Start restconf-netconf Karaf application.
      4. Connect testtool device.
      curl --location --request PUT 'http://192.168.56.100:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=new-netconf-device' \
      --header 'Authorization: Basic YWRtaW46YWRtaW4=' \
      --header 'Content-Type: application/json' \
      --data '{
          "node": [
              {
                  "node-id": "new-netconf-device",
                  "netconf-node-topology:port": 17830,
                  "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": "admin",
                      "netconf-node-topology:password": "admin"
                  },
                  "netconf-node-topology:host": "192.168.56.200",
                  "netconf-node-topology:keepalive-delay": 120
              }
          ]
      }' 

        1. hello.xml
          148 kB
        2. karaf.log
          609 kB
        3. karaf.log.3
          64.00 MB
        4. karaf.log.4
          64.00 MB
        5. karaf-1.log
          436 kB
        6. testtool-debug.zip
          10.92 MB

            rovarga Robert Varga
            PeterSuna Peter Suna
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: