diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-01-28 07:09:24 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-01-28 07:09:24 +0000 |
commit | 79179ccb82d539a81a1ab9b78d26ae76cbf9e3d9 (patch) | |
tree | cff29c594a25d824383b37592fb6c96c3ffdc056 /smoketest/scripts/cli | |
parent | 4c7e317b58d1ff2adac57eea4434c2f4f1eb318b (diff) | |
download | vyos-1x-79179ccb82d539a81a1ab9b78d26ae76cbf9e3d9.tar.gz vyos-1x-79179ccb82d539a81a1ab9b78d26ae76cbf9e3d9.zip |
smoketest: T3261: Add check PPPoE interface disable state
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_pppoe.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_pppoe.py b/smoketest/scripts/cli/test_interfaces_pppoe.py index 6bfe35d86..285c756e2 100755 --- a/smoketest/scripts/cli/test_interfaces_pppoe.py +++ b/smoketest/scripts/cli/test_interfaces_pppoe.py @@ -97,6 +97,27 @@ class PPPoEInterfaceTest(unittest.TestCase): self.assertTrue(running) + + def test_pppoe_clent_disabled_interface(self): + # Check if PPPoE Client can be disabled + for interface in self._interfaces: + self.session.set(base_path + [interface, 'authentication', 'user', 'vyos']) + self.session.set(base_path + [interface, 'authentication', 'password', 'vyos']) + self.session.set(base_path + [interface, 'source-interface', self._source_interface]) + self.session.set(base_path + [interface, 'disable']) + + self.session.commit() + + # Validate PPPoE client process + running = False + for interface in self._interfaces: + for proc in process_iter(): + if interface in proc.cmdline(): + running = True + + self.assertFalse(running) + + def test_pppoe_dhcpv6pd(self): # Check if PPPoE dialer can be configured with DHCPv6-PD address = '1' |