summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-16 08:31:58 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-16 08:37:44 +0000
commit42e83b8b2cca6ba73c2663629cf92b3b2b225898 (patch)
tree8181127e90e5a8ca6e19a6b1af624acf56482eb4 /data/templates/frr
parent64c8318b94d91b37ddc60632aa1203f37e65ccd7 (diff)
downloadvyos-1x-42e83b8b2cca6ba73c2663629cf92b3b2b225898.tar.gz
vyos-1x-42e83b8b2cca6ba73c2663629cf92b3b2b225898.zip
T6001: add option to disable next-hop-tracking resolve-via-default in VRF context
* set vrf name <name> ip nht no-resolve-via-default * set vrf name <name> ipv6 nht no-resolve-via-default (cherry picked from commit 0fafc4bcdb9efc03796ddab0832471b11ba1bbe0)
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/zebra.vrf.route-map.frr.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/zebra.vrf.route-map.frr.j2 b/data/templates/frr/zebra.vrf.route-map.frr.j2
index 4e1206374..f1cc6fe66 100644
--- a/data/templates/frr/zebra.vrf.route-map.frr.j2
+++ b/data/templates/frr/zebra.vrf.route-map.frr.j2
@@ -6,6 +6,12 @@
{% continue %}
{% endif %}
vrf {{ vrf }}
+{% if vrf_config.ip.nht.no_resolve_via_default is vyos_defined %}
+ no ip nht resolve-via-default
+{% endif %}
+{% if vrf_config.ipv6.nht.no_resolve_via_default is vyos_defined %}
+ no ipv6 nht resolve-via-default
+{% endif %}
{% if vrf_config.ip.protocol is vyos_defined %}
{% for protocol_name, protocol_config in vrf_config.ip.protocol.items() %}
ip protocol {{ protocol_name }} route-map {{ protocol_config.route_map }}