summaryrefslogtreecommitdiff
path: root/scripts/vyos-update-nhrp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyos-update-nhrp.pl')
-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");
}
}