]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
kronosnetd: increase default vty timeout and save it to config
authorFabio M. Di Nitto <fdinitto@redhat.com>
Mon, 12 Nov 2012 12:01:23 +0000 (13:01 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Mon, 12 Nov 2012 12:01:23 +0000 (13:01 +0100)
loading still has no effect

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
kronosnetd/vty.h
kronosnetd/vty_cli_cmds.c

index 0850fe23e55a87317cfda9949ede7d34f867c19a..0a1bf4c2338f2eca8ef266bc586dc1d6ed388fca 100644 (file)
@@ -9,7 +9,7 @@
 
 #define KNET_VTY_DEFAULT_MAX_CONN      4
 #define KNET_VTY_TOTAL_MAX_CONN                16
-#define KNET_VTY_CLI_TIMEOUT           120
+#define KNET_VTY_CLI_TIMEOUT           300
 
 #define KNET_VTY_MAX_LINE              512
 
index 660ba38c56041c99a909adb5c588030a30a1286b..c4d94d148778effe0c22b0108d27b6f0c0840081 100644 (file)
@@ -1750,6 +1750,10 @@ static int knet_cmd_print_conf(struct knet_vty *vty)
 
        knet_vty_write(vty, "configure%s", nl);
 
+       knet_vty_write(vty, " vty%s", nl);
+       knet_vty_write(vty, "  timeout %d%s", vty->idle_timeout, nl);
+       knet_vty_write(vty, "  exit%s", nl);
+
        while (knet_iface != NULL) {
                knet_vty_write(vty, " interface %s %u %u%s", tap_get_name(knet_iface->cfg_eth.tap),
                                                             knet_iface->cfg_eth.node_id,