summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJACK <jack9603301@163.com>2020-07-08 15:47:16 +0800
committerGitHub <noreply@github.com>2020-07-08 15:47:16 +0800
commitd5599dbe3918c5a1f8d883d6e2db577b6b4ff4a2 (patch)
tree4810e4c4293c3150f97d6f1c6b676f294d0b9aed /data/templates
parentd0261c4daf31bd7fc05643e86660caee9f0442c5 (diff)
downloadvyos-1x-d5599dbe3918c5a1f8d883d6e2db577b6b4ff4a2.tar.gz
vyos-1x-d5599dbe3918c5a1f8d883d6e2db577b6b4ff4a2.zip
pppoe: ipv6: T2693: Fix a bug in dhcp6c for PPPoE
Commit 03fb97 (pppoe: ipv6: T2681: script bugfix after get_config_dict() migration ) After the PPPoE link is reset, dhcp6c cannot be restarted, which may cause the prefix delegation of IPv6 to fail to restart. This submission will restart dhcp6c after the IPv6 of PPPoE is up again
Diffstat (limited to 'data/templates')
-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 f69f9fc1a..d9d918c97 100644
--- a/data/templates/pppoe/ip-down.script.tmpl
+++ b/data/templates/pppoe/ip-down.script.tmpl
@@ -30,7 +30,7 @@ vtysh -c "conf t" ${VRF_NAME} -c "no ipv6 route ::/0 {{ ifname }} ${VRF_NAME}"
{% endif %}
{% endif %}
-{% if dhcpv6_pd_interfaces %}
-# Start wide dhcpv6 client
+{% if dhcpv6_options is defined and dhcpv6_options.prefix_delegation is defined %}
+# Stop wide dhcpv6 client
systemctl stop dhcp6c@{{ ifname }}.service
{% endif %}