[NETCONF-492] netconf:list-devices throws a NullPointerException Created: 26/Dec/17  Updated: 08/Jan/18  Resolved: 08/Jan/18

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

Type: Bug Priority: Medium
Reporter: Guosheng Li Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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

 



 Comments   
Comment by Jakub Toth [ 08/Jan/18 ]

https://git.opendaylight.org/gerrit/#/c/66761/

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