Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • RestSBController.java, implemented by RestSBControllerImpl.java: tracks all the NETCONF devices, serves as a one stop for connecting and obtaining a device and (un)register listeners on device events. It also exposes interface methods to do REST CRUD operations on a device indetified by a DeviceId.

  • RestSBDevice.java implemented by NetconfDeviceImplby DefaultRestSBDevice.java: represents a NETCONF REST capable device connected known to the ONOS core with his own NetconfSession and his informations saved in an instance of NetconfDeviceInfoall the information needed such as Ip,port,name,password,protocol, deviceId.
  • RestDeviceProvider.java: manages any NETCONF REST device role and all the interactions with the ONOS core, such as provisioning the ports and the initial device setup. Has his own internalConfigListener from which it gets notified when a configuration is pushed to ONOS via restAPI.
  • XMLConfigParser.java: parser for reading and producing XML files to and from the REST device. For now has only configuration reader and edit controllers configuration producerports for a specific Ciena device.

Through implementing the NetconfDeviceOutputEventListener.java and adding the listener to the session anybody who needs to obtain device notifications can listen on device generated messages that are picked up by the listeners implementations that is in the set of to be notified listeners in the StreamHandler implementation, right now NetconfStreamThread.java.

...