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

netconf:list-devices throws a NullPointerException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • None
    • None
    • None

    Description

      When initiate a connection to a netconf device, the operational data store of this device will be set as failed as below if the negotiation fails:

      NetconfDeviceTopologyAdapter.java

      void setDeviceAsFailed(final Throwable throwable)

      { final NetconfNode data = new NetconfNodeBuilder() .setConnectionStatus(ConnectionStatus.UnableToConnect).setConnectedMessage(reason).build(); ... }

      method setDeviceAsFailed() just write ConnectionStatus and ConnectedMessage to operational data store, and netconf:list-devices command will not find Host and Port, then a NullPointerException will be thrown

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            liguosheng Guosheng Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: