diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-23 14:45:15 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-23 14:45:18 +0200 |
commit | 11da3f091a98436044e157892cdefd41a2358e42 (patch) | |
tree | 57d3df6ca93d5a2d3e813f8ceb95959a5d87fd6d /scripts/cli | |
parent | bd7f30dcd55866de125af012ac63b96dc226a1f1 (diff) | |
download | vyos-1x-11da3f091a98436044e157892cdefd41a2358e42.tar.gz vyos-1x-11da3f091a98436044e157892cdefd41a2358e42.zip |
pppoe: validate dhcpv6 client will be started
Diffstat (limited to 'scripts/cli')
-rwxr-xr-x | scripts/cli/test_interfaces_pppoe.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/cli/test_interfaces_pppoe.py b/scripts/cli/test_interfaces_pppoe.py index 7e26b7dac..822f05de6 100755 --- a/scripts/cli/test_interfaces_pppoe.py +++ b/scripts/cli/test_interfaces_pppoe.py @@ -152,7 +152,11 @@ class PPPoEInterfaceTest(unittest.TestCase): self.assertTrue(running) # We can not check if wide-dhcpv6 process is running as it is started - # after the PPP interface gets a link to the ISP + # after the PPP interface gets a link to the ISP - but we can see if + # it would be started by the scripts + tmp = read_file(f'/etc/ppp/ipv6-up.d/1000-vyos-pppoe-{interface}') + tmp = re.findall(f'systemctl start dhcp6c@{interface}.service', tmp) + self.assertTrue(tmp) if __name__ == '__main__': unittest.main() |