summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_pppoe.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-28 13:24:18 +0100
committerGitHub <noreply@github.com>2021-01-28 13:24:18 +0100
commit1e62e5e264f60b2e21a4855e264a5bcc8fdc32da (patch)
treec38005e5ac7d3e6a50450c73fce2c6eaad3a1e5b /smoketest/scripts/cli/test_interfaces_pppoe.py
parent5766ca3b8d8ee08ac7ede41cf007ca2db44a2690 (diff)
parent79179ccb82d539a81a1ab9b78d26ae76cbf9e3d9 (diff)
downloadvyos-1x-1e62e5e264f60b2e21a4855e264a5bcc8fdc32da.tar.gz
vyos-1x-1e62e5e264f60b2e21a4855e264a5bcc8fdc32da.zip
Merge pull request #706 from DmitriyEshenko/1x-pppoe-cl02
smoketest: T3261: Add check PPPoE interface disable state
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_pppoe.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_pppoe.py21
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'