From d5599dbe3918c5a1f8d883d6e2db577b6b4ff4a2 Mon Sep 17 00:00:00 2001 From: JACK Date: Wed, 8 Jul 2020 15:47:16 +0800 Subject: 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 --- data/templates/pppoe/ip-down.script.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data') 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 %} -- cgit v1.2.3