summaryrefslogtreecommitdiff
path: root/data/templates/pppoe
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-13 22:54:53 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-13 22:55:46 +0200
commitb9e749215600e0f214b9af845798035d40da81ff (patch)
tree98ba9d5af0554ac7a31d1dec9a0190c15105cf3a /data/templates/pppoe
parent291a161106f5c239d72200ae62c10c01f5ed6e9f (diff)
downloadvyos-1x-b9e749215600e0f214b9af845798035d40da81ff.tar.gz
vyos-1x-b9e749215600e0f214b9af845798035d40da81ff.zip
pppoe: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/pppoe')
-rw-r--r--data/templates/pppoe/ip-down.script.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/pppoe/ip-down.script.tmpl b/data/templates/pppoe/ip-down.script.tmpl
index bac4155d6..0be7b03c8 100644
--- a/data/templates/pppoe/ip-down.script.tmpl
+++ b/data/templates/pppoe/ip-down.script.tmpl
@@ -26,13 +26,13 @@ fi
{% if default_route != 'none' %}
# Always delete default route when interface goes down if we installed it
vtysh -c "conf t" ${VRF_NAME} -c "no ip route 0.0.0.0/0 {{ ifname }} ${VRF_NAME}"
-{% if ipv6 is defined and ipv6.address is defined and ipv6.address.autoconf is defined %}
+{% if ipv6.address.autoconf is vyos_defined %}
vtysh -c "conf t" ${VRF_NAME} -c "no ipv6 route ::/0 {{ ifname }} ${VRF_NAME}"
{% endif %}
{% endif %}
{% endif %}
-{% if dhcpv6_options is defined and dhcpv6_options.pd is defined %}
+{% if dhcpv6_options.pd is vyos_defined %}
# Stop wide dhcpv6 client
systemctl stop dhcp6c@{{ ifname }}.service
{% endif %}