diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-16 09:36:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 09:36:18 +0100 |
commit | 8c860fa7c423cc2bd72f9e71a5f8c52f43e02dfa (patch) | |
tree | 4d0c0d0e7517c7cef73134771336672e3c3bcee7 /data/templates | |
parent | 2ff7d80f44aa1bc8429b18417cd63eb6f7105eef (diff) | |
parent | 0fafc4bcdb9efc03796ddab0832471b11ba1bbe0 (diff) | |
download | vyos-1x-8c860fa7c423cc2bd72f9e71a5f8c52f43e02dfa.tar.gz vyos-1x-8c860fa7c423cc2bd72f9e71a5f8c52f43e02dfa.zip |
Merge pull request #3016 from c-po/nht
T6001: add option to disable next-hop-tracking resolve-via-default
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/frr/zebra.route-map.frr.j2 | 5 | ||||
-rw-r--r-- | data/templates/frr/zebra.vrf.route-map.frr.j2 | 6 |
2 files changed, 11 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 %} +! 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 }} |