summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim@L1351.multidevelopmentcorp.com>2015-02-15 18:34:57 +0100
committerKim Hagen <kim@L1351.multidevelopmentcorp.com>2015-02-15 18:34:57 +0100
commit87c7b798636f07f2f678b1296e9f8b44b54827a2 (patch)
tree68b4c66e7b473a20d96c0e3110d2c48d4d98a157
parent4361ebb4e3c1db39011640bea820e120cd4b1753 (diff)
downloadvyos-nhrp-87c7b798636f07f2f678b1296e9f8b44b54827a2.tar.gz
vyos-nhrp-87c7b798636f07f2f678b1296e9f8b44b54827a2.zip
Add dead peer detection options for spoke connections.
-rw-r--r--scripts/vyos-update-nhrp.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl
index b4ce8bb..9e83c5f 100644
--- a/scripts/vyos-update-nhrp.pl
+++ b/scripts/vyos-update-nhrp.pl
@@ -425,6 +425,20 @@ sub ipsec_config {
}
++$y;
}
+ if ($config_prot->exists("dead-peer-detection action")) {
+ push(@conf_file, " ");
+ push(@conf_file, "--dpdaction");
+ push(@conf_file, " ");
+ push(@conf_file, $config_prot->returnValue("dead-peer-detection action"));
+ push(@conf_file, " ");
+ push(@conf_file, "--dpdtimeout");
+ push(@conf_file, " ");
+ push(@conf_file, $config_prot->returnValue("dead-peer-detection timeout"));
+ push(@conf_file, " ");
+ push(@conf_file, "--dpddelay");
+ push(@conf_file, " ");
+ push(@conf_file, $config_prot->returnValue("dead-peer-detection interval"));
+ }
push(@conf_file, "\n");
}
}