public interface NetconfController
| Modifier and Type | Method and Description |
|---|---|
void |
addDeviceListener(NetconfDeviceListener listener)
Adds Device Event Listener.
|
NetconfDevice |
connectDevice(org.onosproject.net.DeviceId deviceId)
Tries to connect to a specific NETCONF device, if the connection is succesful
it creates and adds the device to the ONOS core as a NetconfDevice.
|
void |
disconnectDevice(org.onosproject.net.DeviceId deviceId,
boolean remove)
Disconnects a Netconf device and removes it from the core.
|
Map<org.onosproject.net.DeviceId,NetconfDevice> |
getDevicesMap()
Gets all the nodes information.
|
NetconfDevice |
getNetconfDevice(org.onosproject.net.DeviceId deviceInfo)
Gets a Netconf Device by node identifier.
|
NetconfDevice |
getNetconfDevice(org.onlab.packet.IpAddress ip,
int port)
Gets a Netconf Device by node identifier.
|
Set<org.onosproject.net.DeviceId> |
getNetconfDevices()
Gets all Netconf Devices.
|
void |
removeDevice(org.onosproject.net.DeviceId deviceId)
Removes a Netconf device from the core.
|
void |
removeDeviceListener(NetconfDeviceListener listener)
Removes Device Listener.
|
void addDeviceListener(NetconfDeviceListener listener)
listener - node listenervoid removeDeviceListener(NetconfDeviceListener listener)
listener - node listenerNetconfDevice connectDevice(org.onosproject.net.DeviceId deviceId) throws NetconfException
deviceId - deviceId of the device to connectNetconfException - when device is not availablevoid disconnectDevice(org.onosproject.net.DeviceId deviceId,
boolean remove)
deviceId - id of the device to removeremove - true if device is to be removed from corevoid removeDevice(org.onosproject.net.DeviceId deviceId)
deviceId - id of the device to removeMap<org.onosproject.net.DeviceId,NetconfDevice> getDevicesMap()
Set<org.onosproject.net.DeviceId> getNetconfDevices()
NetconfDevice getNetconfDevice(org.onosproject.net.DeviceId deviceInfo)
deviceInfo - node identifierNetconfDevice getNetconfDevice(org.onlab.packet.IpAddress ip, int port)
ip - device ipport - device port