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