summaryrefslogtreecommitdiff
path: root/data/templates/frr/policy.frr.tmpl
diff options
context:
space:
mode:
authorPaul Lettington <paul@plett.co.uk>2022-03-09 14:24:16 +0000
committerPaul Lettington <paul@plett.co.uk>2022-03-09 20:15:42 +0000
commit7549c847c3df9155c4315efcccfaf798af9fb402 (patch)
tree1daf53f73ead87fcdbf43169f5d2a7391ff6649c /data/templates/frr/policy.frr.tmpl
parentc4d389488970c8510200cac96a67182e9333b891 (diff)
downloadvyos-1x-7549c847c3df9155c4315efcccfaf798af9fb402.tar.gz
vyos-1x-7549c847c3df9155c4315efcccfaf798af9fb402.zip
policy: T2493 ip-next-hop unchanged & peer-address
Also add ipv6-next-hop peer-address
Diffstat (limited to 'data/templates/frr/policy.frr.tmpl')
-rw-r--r--data/templates/frr/policy.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.tmpl b/data/templates/frr/policy.frr.tmpl
index d3d3957a5..97eb15331 100644
--- a/data/templates/frr/policy.frr.tmpl
+++ b/data/templates/frr/policy.frr.tmpl
@@ -276,6 +276,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.set.ipv6_next_hop is defined and rule_config.set.ipv6_next_hop.local is defined and rule_config.set.ipv6_next_hop.local is not none %}
set ipv6 next-hop local {{ rule_config.set.ipv6_next_hop.local }}
{% endif %}
+{% if rule_config.set.ipv6_next_hop is defined and rule_config.set.ipv6_next_hop.peer_address is defined %}
+ set ipv6 next-hop peer-address
+{% endif %}
{% if rule_config.set.ipv6_next_hop is defined and rule_config.set.ipv6_next_hop.prefer_global is defined %}
set ipv6 next-hop prefer-global
{% endif %}