From cf2bca285c601e7cac06fe70e25690686124f9ab Mon Sep 17 00:00:00 2001 From: Luca Berneking Date: Tue, 8 Jun 2021 08:19:00 +0200 Subject: 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. --- .../rule/node.tag/set/ipv6-next-hop/prefer-global/node.def | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 templates/policy/route-map/node.tag/rule/node.tag/set/ipv6-next-hop/prefer-global/node.def 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" + -- cgit v1.2.3