diff options
-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. |