libnetconf UPDATE YANG data configuration
Configuration based on YANG data. Open 2 ssh channels on one
session. Pubkey,interactive,pw,none SSH authentication working. SSH
message callback not a callback anymore, handle SSH messages manually.
ietf-netconf-server and all models it imports added and a libnetconf2 own model
with augments. And finally only local-definition of keys supported. 2 tests.
NBC API changes.
diff --git a/modules/libnetconf2-netconf-server.yang b/modules/libnetconf2-netconf-server.yang
new file mode 100644
index 0000000..f9b7625
--- /dev/null
+++ b/modules/libnetconf2-netconf-server.yang
@@ -0,0 +1,35 @@
+module libnetconf2-netconf-server {
+ yang-version 1.1;
+ namespace "urn:cesnet:libnetconf2-netconf-server";
+ prefix np2;
+
+ import ietf-netconf-server {
+ prefix ncs;
+ }
+
+ augment "/ncs:netconf-server/ncs:listen/ncs:endpoint/ncs:transport/ncs:ssh/ncs:ssh/ncs:ssh-server-parameters/ncs:client-authentication" {
+ leaf auth-attempts {
+ type uint16;
+ default 3;
+ }
+
+ leaf auth-timeout {
+ type uint16;
+ default 10;
+ units "seconds";
+ }
+ }
+
+ augment "/ncs:netconf-server/ncs:listen/ncs:endpoint/ncs:transport/ncs:ssh/ncs:ssh/ncs:ssh-server-parameters/ncs:client-authentication/ncs:users/ncs:user" {
+ container keyboard-interactive {
+ presence "";
+ leaf pam-config-file-name {
+ type string;
+ mandatory true;
+ }
+ leaf pam-config-file-dir {
+ type string;
+ }
+ }
+ }
+}