diff options
| author | Kim Hagen <khagen@multi-development.com> | 2014-08-25 10:21:35 +0200 |
|---|---|---|
| committer | Kim Hagen <khagen@multi-development.com> | 2014-08-25 10:21:35 +0200 |
| commit | 818b4863c1047ce597a72943dc7b4d49b6f0e4dc (patch) | |
| tree | 1f330c8e5aaf9e28d9299f99580afd795a72521a /scripts | |
| parent | c2a31910938e719af0ea23981345fa2acdf97f64 (diff) | |
| download | vyos-nhrp-818b4863c1047ce597a72943dc7b4d49b6f0e4dc.tar.gz vyos-nhrp-818b4863c1047ce597a72943dc7b4d49b6f0e4dc.zip | |
Add 'dynamic-map' option
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/vyos-update-nhrp.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl index 5741eeb..de91173 100644 --- a/scripts/vyos-update-nhrp.pl +++ b/scripts/vyos-update-nhrp.pl @@ -193,6 +193,16 @@ sub tunnel_config { } push(@conf_file, "\n"); } + if ( $tunnel_Config->exists("$tunnel_ID dynamic-map")) { + $type = "#spoke"; + my @dynmaps = $tunnel_Config->listNodes("$tunnel_ID dynamic-map"); + my $dynmap = $dynmaps[0]; + push(@conf_file, " dynamic-map", " $dynmap"); + push(@conf_file, " ", $tunnel_Config->returnValue("$tunnel_ID dynamic-map $dynmap nbma-domain-name")); + shift(@conf_file); + unshift(@conf_file, "interface $tunnel_ID $type\n"); + push(@conf_file, "\n"); + } if ($tunnel_Config->returnValue("$tunnel_ID cisco-authentication") ne "") { push(@conf_file, " cisco-authentication ", $tunnel_Config->returnValue("$tunnel_ID cisco-authentication") , "\n"); } |
