diff options
| author | Kim Hagen <khagen@multi-development.com> | 2014-08-25 12:08:12 +0200 |
|---|---|---|
| committer | Kim Hagen <khagen@multi-development.com> | 2014-08-25 12:08:12 +0200 |
| commit | d94a24a1f3bf86065aa463efe4359d07ac272631 (patch) | |
| tree | 6e3e4598ba69e585bdf9fa7d24f2dce1da275953 | |
| parent | 2484447ac37791188feae6b9bf2e5213a7682abc (diff) | |
| download | vyos-nhrp-master.tar.gz vyos-nhrp-master.zip | |
Add 'shortcut-destination' optionmaster
| -rw-r--r-- | scripts/vyos-update-nhrp.pl | 5 | ||||
| -rw-r--r-- | templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut-destination/node.def | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/vyos-update-nhrp.pl b/scripts/vyos-update-nhrp.pl index 7f4d62a..6e170e3 100644 --- a/scripts/vyos-update-nhrp.pl +++ b/scripts/vyos-update-nhrp.pl @@ -227,7 +227,10 @@ sub tunnel_config { } if ($tunnel_Config->exists("$tunnel_ID redirect")) { push(@conf_file, " redirect\n"); - } + } + if ($tunnel_Config->exists("$tunnel_ID shortcut-destination")) { + push(@conf_file, " shortcut-destination\n"); + } push(@conf_file, "\n"); return @conf_file; diff --git a/templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut-destination/node.def b/templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut-destination/node.def new file mode 100644 index 0000000..7dc781d --- /dev/null +++ b/templates-cfg/protocols/nhrp/tunnel/node.tag/shortcut-destination/node.def @@ -0,0 +1,2 @@ +help: This instructs opennhrp to reply with authorative answers on \n + NHRP Resolution Requests destinied to addresses in this interface. |
