|
Reconnection logic introduced in NETCONF-611 is rather ugly, as it modifies lifecycle rather thoroughly and relies on datastore overwrites.
Migrate the logic into AbstractNetworkTopology, where it should react to RemoteDeviceHandler.onDeviceDisconnected() – which it is in control of, as it is passing the object it creates via createSalFacade().
Perhaps we should be triggering onDeviceFailed() and propagate the schema resolution exception, though – this needs some thought.
At any rate, NetconfDeviceBuilder should lose setNode(), as it should not be needed.
|