summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-15 22:54:58 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-16 08:32:52 +0100
commitece0e768f36e52f8964823d891264d7c187204ec (patch)
treecbd7c0a54e048aef17b27ba728b38e9352a0f8b1 /data/templates/frr
parent56654191613113764415d7eddadcbd8c97e126de (diff)
downloadvyos-1x-ece0e768f36e52f8964823d891264d7c187204ec.tar.gz
vyos-1x-ece0e768f36e52f8964823d891264d7c187204ec.zip
T6001: add option to disable next-hop-tracking resolve-via-default
* set system ip nht no-resolve-via-default * set system ipv6 nht no-resolve-via-default
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/zebra.route-map.frr.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/frr/zebra.route-map.frr.j2 b/data/templates/frr/zebra.route-map.frr.j2
index 8e18abbde..669d58354 100644
--- a/data/templates/frr/zebra.route-map.frr.j2
+++ b/data/templates/frr/zebra.route-map.frr.j2
@@ -1,4 +1,8 @@
!
+{% if nht.no_resolve_via_default is vyos_defined %}
+no {{ afi }} nht resolve-via-default
+{% endif %}
+!
{% if protocol is vyos_defined %}
{% for protocol_name, protocol_config in protocol.items() %}
{% if protocol_name is vyos_defined('ospfv3') %}
@@ -7,3 +11,4 @@
{{ afi }} protocol {{ protocol_name }} route-map {{ protocol_config.route_map }}
{% endfor %}
{% endif %}
+!