summaryrefslogtreecommitdiff
path: root/data/templates/firewall
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-11 10:27:13 +0100
committerChristian Poessinger <christian@poessinger.com>2022-01-11 10:28:00 +0100
commit54675c2cc9aa9c1315478107cce14e5ba23d865e (patch)
tree2ec5a4430922771c46a0ab16ffe896f09e0edf13 /data/templates/firewall
parente89f48269e96f0b558dd3d427c4cc89abd585c3f (diff)
downloadvyos-1x-54675c2cc9aa9c1315478107cce14e5ba23d865e.tar.gz
vyos-1x-54675c2cc9aa9c1315478107cce14e5ba23d865e.zip
policy: T4170: rename "policy ipv6-route" -> "policy route6"
In order to have a consistent looking CLI we should rename this CLI node. There is: * access-list and access-list6 (policy) * prefix-list and prefix-list6 (policy) * route and route6 (static routes)
Diffstat (limited to 'data/templates/firewall')
-rw-r--r--data/templates/firewall/nftables-policy.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/firewall/nftables-policy.tmpl b/data/templates/firewall/nftables-policy.tmpl
index aa6bb6fc1..ecc7e0fbd 100644
--- a/data/templates/firewall/nftables-policy.tmpl
+++ b/data/templates/firewall/nftables-policy.tmpl
@@ -9,7 +9,7 @@ table ip mangle {
type filter hook postrouting priority -150; policy accept;
}
{% endif %}
-{% if route is defined -%}
+{% if route is defined and route is not none -%}
{% for route_text, conf in route.items() %}
chain VYOS_PBR_{{ route_text }} {
{% if conf.rule is defined %}
@@ -36,8 +36,8 @@ table ip6 mangle {
type filter hook postrouting priority -150; policy accept;
}
{% endif %}
-{% if ipv6_route is defined %}
-{% for route_text, conf in ipv6_route.items() %}
+{% if route6 is defined and route6 is not none %}
+{% for route_text, conf in route6.items() %}
chain VYOS_PBR6_{{ route_text }} {
{% if conf.rule is defined %}
{% for rule_id, rule_conf in conf.rule.items() if rule_conf.disable is not defined %}