summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-30 15:00:48 +0200
committerGitHub <noreply@github.com>2022-05-30 15:00:48 +0200
commit4c93173548151cf374097131f7cd4226dcc3075b (patch)
treede05481c3d6184439a0e343e3f50594ecd8396f7 /data/templates
parent96a88c1990a974c5291553e8b9cd3220795366fb (diff)
parentfda276bd0bb60f0ac4289103956e07c66c8e0f1e (diff)
downloadvyos-1x-4c93173548151cf374097131f7cd4226dcc3075b.tar.gz
vyos-1x-4c93173548151cf374097131f7cd4226dcc3075b.zip
Merge pull request #1342 from nicolas-fort/T4450
Policy: T4450: Expand options for ip|ipv6 address match.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/policy.frr.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/policy.frr.j2 b/data/templates/frr/policy.frr.j2
index 01884101f..9326cdf03 100644
--- a/data/templates/frr/policy.frr.j2
+++ b/data/templates/frr/policy.frr.j2
@@ -185,6 +185,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.match.ip.address.prefix_list is vyos_defined %}
match ip address prefix-list {{ rule_config.match.ip.address.prefix_list }}
{% endif %}
+{% if rule_config.match.ip.address.prefix_len is vyos_defined %}
+ match ip address prefix-len {{ rule_config.match.ip.address.prefix_len }}
+{% endif %}
{% if rule_config.match.ip.nexthop.access_list is vyos_defined %}
match ip next-hop {{ rule_config.match.ip.nexthop.access_list }}
{% endif %}
@@ -212,6 +215,9 @@ route-map {{ route_map }} {{ rule_config.action }} {{ rule }}
{% if rule_config.match.ipv6.address.prefix_list is vyos_defined %}
match ipv6 address prefix-list {{ rule_config.match.ipv6.address.prefix_list }}
{% endif %}
+{% if rule_config.match.ipv6.address.prefix_len is vyos_defined %}
+ match ipv6 address prefix-len {{ rule_config.match.ipv6.address.prefix_len }}
+{% endif %}
{% if rule_config.match.ipv6.nexthop is vyos_defined %}
match ipv6 next-hop address {{ rule_config.match.ipv6.nexthop }}
{% endif %}