summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-29 09:52:28 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-29 09:52:28 +0200
commitbcebdb01e12ef2014eb13d750448a0e8ed221a86 (patch)
tree653a9290e4945156c982ada54af0ec6eefa47ad5 /data/templates/frr
parentf9e38622adc6edb66c84c397ef4d0ae9e49e008e (diff)
parent84fb72fc70c671f462564825f097f820a11aa26e (diff)
downloadvyos-1x-bcebdb01e12ef2014eb13d750448a0e8ed221a86.tar.gz
vyos-1x-bcebdb01e12ef2014eb13d750448a0e8ed221a86.zip
Merge branch 'T4449' of https://github.com/nicolas-fort/vyos-1x into current
* 'T4449' of https://github.com/nicolas-fort/vyos-1x: Policy: T4449: Extend matching options for route-map ip nexthop
Diffstat (limited to 'data/templates/frr')
-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 %}