summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2022-05-28 13:12:38 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2022-05-28 13:16:49 +0000
commit84fb72fc70c671f462564825f097f820a11aa26e (patch)
tree74f32f540e87f30111af212392fca09d9cec44ce /data
parent47d9eb7e7d8197012ab0aa5e878bd0a3bb83ae33 (diff)
downloadvyos-1x-84fb72fc70c671f462564825f097f820a11aa26e.tar.gz
vyos-1x-84fb72fc70c671f462564825f097f820a11aa26e.zip
Policy: T4449: Extend matching options for route-map ip nexthop
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/policy.frr.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.j2 b/data/templates/frr/policy.frr.j2
index a42b73e98..01884101f 100644
--- a/data/templates/frr/policy.frr.j2
+++ b/data/templates/frr/policy.frr.j2
@@ -188,9 +188,18 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.match.ip.nexthop.access_list is vyos_defined %}
match ip next-hop {{ rule_config.match.ip.nexthop.access_list }}
{% endif %}
+{% if rule_config.match.ip.nexthop.address is vyos_defined %}
+ match ip next-hop address {{ rule_config.match.ip.nexthop.address }}
+{% endif %}
+{% if rule_config.match.ip.nexthop.prefix_len is vyos_defined %}
+ match ip next-hop prefix-len {{ rule_config.match.ip.nexthop.prefix_len }}
+{% endif %}
{% if rule_config.match.ip.nexthop.prefix_list is vyos_defined %}
match ip next-hop prefix-list {{ rule_config.match.ip.nexthop.prefix_list }}
{% endif %}
+{% if rule_config.match.ip.nexthop.type is vyos_defined %}
+ match ip next-hop type {{ rule_config.match.ip.nexthop.type }}
+{% endif %}
{% if rule_config.match.ip.route_source.access_list is vyos_defined %}
match ip route-source {{ rule_config.match.ip.route_source.access_list }}
{% endif %}