Package org.onosproject.netconf
Interface NetconfDevice
-
public interface NetconfDeviceInterface representing a NETCONF device.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voiddisconnect()Ensures that all sessions are closed.NetconfDeviceInfogetDeviceInfo()return all the info associated with this device.NetconfSessiongetSession()Returns a NETCONF session context for this device.booleanisActive()Returns whether a device is a NETCONF device with a capabilities list and is accessible, through a secure transport session or a proxy session.default booleanisMasterSession()Returns whether the device has secure transport session.
-
-
-
Method Detail
-
isActive
boolean isActive()
Returns whether a device is a NETCONF device with a capabilities list and is accessible, through a secure transport session or a proxy session.- Returns:
- true if device is accessible, false otherwise
-
isMasterSession
default boolean isMasterSession()
Returns whether the device has secure transport session.- Returns:
- true if secure transport session exists, false otherwise
-
getSession
NetconfSession getSession()
Returns a NETCONF session context for this device.- Returns:
- netconf session
-
disconnect
void disconnect()
Ensures that all sessions are closed. A device cannot be used after disconnect is called.
-
getDeviceInfo
NetconfDeviceInfo getDeviceInfo()
return all the info associated with this device.- Returns:
- NetconfDeviceInfo
-
-