Ejemplo n.º 1
0
 private void stopDevice(NetconfDeviceInfo deviceInfo) {
   netconfDeviceMap.get(deviceInfo.getDeviceId()).disconnect();
   netconfDeviceMap.remove(deviceInfo.getDeviceId());
   for (NetconfDeviceListener l : netconfDeviceListeners) {
     l.deviceRemoved(deviceInfo);
   }
 }
Ejemplo n.º 2
0
 private NetconfDevice createDevice(NetconfDeviceInfo deviceInfo) throws NetconfException {
   NetconfDevice netconfDevice = deviceFactory.createNetconfDevice(deviceInfo);
   for (NetconfDeviceListener l : netconfDeviceListeners) {
     l.deviceAdded(deviceInfo);
   }
   netconfDeviceMap.put(deviceInfo.getDeviceId(), netconfDevice);
   return netconfDevice;
 }