summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-06-29 09:21:05 +0000
committerChristian Poessinger <christian@poessinger.com>2021-06-29 19:55:11 +0200
commit065c6b620cb52a3235c7b6e210d34dc8cb943b95 (patch)
tree1c7d8c66a0014b16fbac95ecb1e4706863caae4b /smoketest
parent6152084f5f497e2f4827ec5271b9112d976cf19b (diff)
downloadvyos-1x-065c6b620cb52a3235c7b6e210d34dc8cb943b95.tar.gz
vyos-1x-065c6b620cb52a3235c7b6e210d34dc8cb943b95.zip
pppoe-server: T3405: Add interface cache feature
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_service_pppoe-server.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_service_pppoe-server.py b/smoketest/scripts/cli/test_service_pppoe-server.py
index 2b11ee362..51cc098ef 100755
--- a/smoketest/scripts/cli/test_service_pppoe-server.py
+++ b/smoketest/scripts/cli/test_service_pppoe-server.py
@@ -91,6 +91,10 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase):
mru = '9000'
self.set(['ppp-options', 'mru', mru])
+ # interface-cache
+ interface_cache = '128000'
+ self.set(['ppp-options', 'interface-cache', interface_cache])
+
# commit changes
self.cli_commit()
@@ -113,6 +117,9 @@ class TestServicePPPoEServer(BasicAccelPPPTest.TestCase):
# check other settings
self.assertEqual(conf['connlimit']['limit'], '20/min')
+ # check interface-cache
+ self.assertEqual(conf['ppp']['unit-cache'], interface_cache)
+
# Check for running process
self.assertTrue(process_named_running(self._process_name))