Add interface SslHandlerFactory
[netconf.git] / netconf / sal-netconf-connector / src / main / yang / netconf-node-topology.yang
index 91bda040f916e1b17e5250101d25c350323148ce..1e1f85545e350ec69cd65fe268506537ba3ce378 100644 (file)
@@ -28,7 +28,7 @@ module netconf-node-topology {
     grouping netconf-node-credentials {
         choice credentials {
             config true;
-            case login-password-deprecated {
+            case login-password {
                 description "Deprecated way of storing credentials, unencrypted.";
 
                 status deprecated;
@@ -37,7 +37,6 @@ module netconf-node-topology {
             case login-pw {
                 description "login-password credentials, encrypted.";
 
-
                 container login-password {
                     uses username-password;
                 }
@@ -80,6 +79,30 @@ module netconf-node-topology {
             type boolean;
         }
 
+        container protocol {
+            config true;
+            leaf name {
+                type enumeration {
+                    enum SSH;
+                    enum TLS;
+                }
+                default SSH;
+            }
+
+            choice specification {
+                case tls-case {
+                   container tls {
+                       leaf-list excluded-versions {
+                           type string;
+                           description "A list of TLS version names provided in JDK that are not supported by the
+                                        target netconf device, eg, the netopeer2 simulator does not support the
+                                        SSLv2Hello. Most of the time, this list need not be set";
+                       }
+                   }
+                }
+            }
+        }
+
         leaf schemaless {
             type boolean;
             default false;