Patch for ONOS-6840 NETCONF timeouts per device
Change-Id: Ia2e578245b97e0f68ea720cefe783e708e255ca7
diff --git a/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfSession.java b/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfSession.java
index 7a4df0b..06c8b9c 100644
--- a/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfSession.java
+++ b/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfSession.java
@@ -593,4 +593,28 @@
*/
void removeDeviceOutputListener(NetconfDeviceOutputEventListener listener);
+ /**
+ * Read the connect timeout that this session was created with.
+ * @return timeout in seconds
+ */
+ default int timeoutConnectSec() {
+ return 0;
+ };
+
+ /**
+ * Read the reply timeout that this session was created with.
+ * @return timeout in seconds
+ */
+ default int timeoutReplySec() {
+ return 0;
+ };
+
+ /**
+ * Read the idle timeout that this session was created with.
+ * @return timeout in seconds
+ */
+ default int timeoutIdleSec() {
+ return 0;
+ };
+
}