BUG-3335 Add keepalive mechanism to netconf-connector
[controller.git] / opendaylight / md-sal / sal-netconf-connector / src / main / yang / odl-sal-netconf-connector-cfg.yang
index 08c4de64f2d475926e74ea87cfb0e343bdd45371..799c9c89995d414b410f1aa1ad02f4a4b4756e80 100644 (file)
@@ -150,6 +150,25 @@ module odl-sal-netconf-connector-cfg {
                 }
                 default 1.5;
             }
+
+            // Keepalive configuration
+            leaf keepalive-delay {
+                type uint32;
+                default 120;
+                description "Netconf connector sends keepalive RPCs while the session is idle, this delay specifies the delay between keepalive RPC in seconds
+                             If a value <1 is provided, no keepalives will be sent";
+            }
+
+            container keepalive-executor {
+                uses config:service-ref {
+                    refine type {
+                        mandatory false;
+                        config:required-identity th:scheduled-threadpool;
+                    }
+                }
+
+                description "Dedicated solely to keepalive execution";
+            }
         }
     }
 }
\ No newline at end of file