Package org.onosproject.netconf
Interface NetconfDeviceFactory
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface NetconfDeviceFactoryAbstract interface for the creation of a NETCONF device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NetconfDevicecreateNetconfDevice(NetconfDeviceInfo netconfDeviceInfo)Creates a new NETCONF device based on the supplied information.default NetconfDevicecreateNetconfDevice(NetconfDeviceInfo netconfDeviceInfo, boolean isMaster)Creates a new NETCONF device based on the supplied information.
-
-
-
Method Detail
-
createNetconfDevice
NetconfDevice createNetconfDevice(NetconfDeviceInfo netconfDeviceInfo) throws NetconfException
Creates a new NETCONF device based on the supplied information.- Parameters:
netconfDeviceInfo- information of the device to create.- Returns:
- Instance of NetconfDevice.
- Throws:
NetconfException- when problems arise creating the device and establishing the connection.
-
createNetconfDevice
@Beta default NetconfDevice createNetconfDevice(NetconfDeviceInfo netconfDeviceInfo, boolean isMaster) throws NetconfException
Creates a new NETCONF device based on the supplied information.- Parameters:
netconfDeviceInfo- information of the device to create.isMaster- if true create secure transport session with the device, else just create a proxy session- Returns:
- Instance of NetconfDevice.
- Throws:
NetconfException- when problems arise creating the device and establishing the connection.
-
-