summaryrefslogtreecommitdiff
path: root/smoketest/scripts
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:56:42 +0200
commit6fdb90a43e910841d2a73960446cdef2d094763f (patch)
treefbf747a59976bc1a4efe845ed75aa0ca34973a80 /smoketest/scripts
parentb50f2ffb470eb6cab070166f297219800f91f4c3 (diff)
downloadvyos-1x-6fdb90a43e910841d2a73960446cdef2d094763f.tar.gz
vyos-1x-6fdb90a43e910841d2a73960446cdef2d094763f.zip
pppoe-server: T3405: Add interface cache feature
(cherry picked from commit 065c6b620cb52a3235c7b6e210d34dc8cb943b95)
Diffstat (limited to 'smoketest/scripts')
-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 e8f9facbb..bfbe88daa 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.BaseTest):
mru = '9000'
self.set(['ppp-options', 'mru', mru])
+ # interface-cache
+ interface_cache = '128000'
+ self.set(['ppp-options', 'interface-cache', interface_cache])
+
# commit changes
self.session.commit()
@@ -113,6 +117,9 @@ class TestServicePPPoEServer(BasicAccelPPPTest.BaseTest):
# 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))