summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-pppoe.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-17 20:27:59 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-17 20:28:11 +0200
commit9bcdb58c13b7094a79ae2855a5682f29facab51d (patch)
tree941d3e452d539d2326b1f18a3820ec3ffb3bf8fd /src/conf_mode/interfaces-pppoe.py
parentfaa85accc99d6ff777f12f5dd9e43a6dd8f7e7a2 (diff)
downloadvyos-1x-9bcdb58c13b7094a79ae2855a5682f29facab51d.tar.gz
vyos-1x-9bcdb58c13b7094a79ae2855a5682f29facab51d.zip
pppoe: dhcpv6-pd: T421: start/stop delegation with interface status
Diffstat (limited to 'src/conf_mode/interfaces-pppoe.py')
-rwxr-xr-xsrc/conf_mode/interfaces-pppoe.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py
index baa07e283..ab96211ac 100755
--- a/src/conf_mode/interfaces-pppoe.py
+++ b/src/conf_mode/interfaces-pppoe.py
@@ -195,6 +195,10 @@ def generate(pppoe):
config_files = [config_pppoe, script_pppoe_pre_up, script_pppoe_ip_up,
script_pppoe_ip_down, script_pppoe_ipv6_up]
+ # Shutdown DHCPv6 prefix delegation client
+ if pppoe['dhcpv6_pd']:
+ cmd(f'systemctl stop dhcp6c@{intf}.service')
+
# Always hang-up PPPoE connection prior generating new configuration file
cmd(f'systemctl stop ppp@{intf}.service')