Add configurable connection timeout to netconf client.
[controller.git] / opendaylight / md-sal / sal-netconf-connector / src / main / yang / odl-sal-netconf-connector-cfg.yang
index 923851411090a9c93f9b0cf1d59e9be1a197a92b..b28e72eb80251adb294d99f2e72d17c7edd7cbaf 100644 (file)
@@ -6,7 +6,6 @@ module odl-sal-netconf-connector-cfg {
        import config { prefix config; revision-date 2013-04-05; }
        import threadpool {prefix th;}
        import netty {prefix netty;}
-       import ietf-inet-types {prefix inet;}
        import opendaylight-md-sal-dom {prefix dom;}
 
     description
@@ -81,6 +80,33 @@ module odl-sal-netconf-connector-cfg {
                     }
                 }
             }
+
+            container event-executor {
+                uses config:service-ref {
+                    refine type {
+                        config:required-identity netty:netty-event-executor;
+                    }
+                }
+            }
+
+            leaf connection-timeout-millis {
+                description "Specifies timeout in milliseconds after which connection must be established.";
+                type uint32;
+                default 5000;
+            }
+
+            leaf max-connection-attempts {
+                description "Maximum number of connection retries. Non positive value or null is interpreted as infinity.";
+                type uint32;
+                default 0; // retry forever
+            }
+
+
+            leaf between-attempts-timeout-millis {
+                description "Timeout in milliseconds to wait between connection attempts.";
+                type uint16;
+                default 10000;
+            }
         }
     }
 }
\ No newline at end of file