Allow to configure number of threads used by Netty's EventLoopGroups
[openflowjava.git] / openflow-protocol-impl / src / main / yang / openflow-switch-connection-provider-impl.yang
index ddd6ebd1c5bed0d74e4da9d485a56feebb1209e8..dbc48866b02d1aed551d2382111d84122ed56939 100644 (file)
@@ -6,6 +6,7 @@ module openflow-switch-connection-provider-impl {
     import config {prefix config; revision-date 2013-04-05; }
     import openflow-switch-connection-provider {prefix openflow-switch-connection-provider; revision-date 2014-03-28; }
     import ietf-inet-types {prefix ietf-inet; revision-date 2010-09-24; }
+    import openflow-configuration {prefix of-config; revision-date 2014-06-30; }
 
     description
         "openflow-switch-connection-provider";
@@ -40,10 +41,51 @@ module openflow-switch-connection-provider-impl {
                 type uint32;
                 mandatory true;
             }
-            leaf tls-support {
-                description "tls support enabled (requires SSL-context / keystore)";
-                type boolean;
-                default false;
+            container tls {
+                leaf keystore {
+                    description "keystore location";
+                    type string;
+                }
+                leaf keystore-type {
+                    description "keystore type (JKS or PKCS12)";
+                    type of-config:keystore-type;
+                }
+                leaf keystore-path-type {
+                    description "keystore path type (CLASSPATH or PATH)";
+                    type of-config:path-type;
+                }
+                leaf keystore-password {
+                    description "password protecting keystore";
+                    type string;
+                }
+                leaf certificate-password {
+                    description "password protecting certificate";
+                    type string;
+                }
+                leaf truststore {
+                    description "truststore location";
+                    type string;
+                }
+                leaf truststore-type {
+                    description "truststore type (JKS or PKCS12)";
+                    type of-config:keystore-type;
+                }
+                leaf truststore-path-type {
+                    description "truststore path type (CLASSPATH or PATH)";
+                    type of-config:path-type;
+                }
+                leaf truststore-password {
+                    description "password protecting truststore";
+                    type string;
+                }
+            }
+            container threads {
+                leaf boss-threads {
+                    type uint16;
+                }
+                leaf worker-threads {
+                    type uint16;
+                }
             }
         }
     }