NetconfNodeHandler does not propagate successful connection to its
delegate (RemoteDeviceHandler). Make sure that it's notified so that
the device data is updated accordingly.
JIRA: NETCONF-1074
Change-Id: Id32996c11d0a63812d439ad386472c059255cf4e
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
@Override
- public synchronized void onDeviceConnected(final NetconfDeviceSchema deviceSchema,
+ public void onDeviceConnected(final NetconfDeviceSchema deviceSchema,
final NetconfSessionPreferences sessionPreferences, final RemoteDeviceServices services) {
- attempts = 0;
+ synchronized (this) {
+ attempts = 0;
+ }
+ delegate.onDeviceConnected(deviceSchema, sessionPreferences, services);
}
@Override