summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Berneking <luca@berneking.net>2021-06-08 08:19:00 +0200
committerGitHub <noreply@github.com>2021-06-08 08:19:00 +0200
commitcf2bca285c601e7cac06fe70e25690686124f9ab (patch)
treeb2d58aeab35d92be21ed6efb8254aac7e82d0820
parentcfe45c7c094a6c058bb749c2d5b117892d6f3bdf (diff)
downloadvyatta-cfg-quagga-cf2bca285c601e7cac06fe70e25690686124f9ab.tar.gz
vyatta-cfg-quagga-cf2bca285c601e7cac06fe70e25690686124f9ab.zip
route-map: T3605: allow to set prefer-global for ipv6-next-hop
When we receive a global and link-local ipv6 next-hop ipv6 address, normally the link-local one is preferred. This setting allows to use the global ipv6 instead. This is required if the peer does not answer on his link-local address.
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def
new file mode 100644
index 00000000..83061d4c
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def
@@ -0,0 +1,12 @@
+help: Prefer global address as the nexthop
+
+commit:expression: $VAR(../../../action/) != ""; "you must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../../@) $VAR(../../../action/@) $VAR(../../../@)" \
+ -c "set ipv6 next-hop prefer-global"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../../@) $VAR(../../../action/@) $VAR(../../../@)" \
+ -c "no set ipv6 next-hop prefer-global"
+