summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_accel_ppp_test.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-16 10:12:01 +0200
committerGitHub <noreply@github.com>2024-05-16 10:12:01 +0200
commitbfec382819adb46a9b7092fa70eaa545e8478eb0 (patch)
tree3206da1cfb68c37a67d068e3da619721c65bf770 /smoketest/scripts/cli/base_accel_ppp_test.py
parentd9f1c7c17a850388bbe2a3e430ee206e4d149c29 (diff)
parent2d5bb0230757ff683be4400caffdf7127bc61fad (diff)
downloadvyos-1x-bfec382819adb46a9b7092fa70eaa545e8478eb0.tar.gz
vyos-1x-bfec382819adb46a9b7092fa70eaa545e8478eb0.zip
Merge pull request #3460 from vyos/mergify/bp/sagitta/pr-3450
T5756: L2TP RADIUS backup and weight settings (backport #3450)
Diffstat (limited to 'smoketest/scripts/cli/base_accel_ppp_test.py')
-rw-r--r--smoketest/scripts/cli/base_accel_ppp_test.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_accel_ppp_test.py b/smoketest/scripts/cli/base_accel_ppp_test.py
index 383adc445..ab723e707 100644
--- a/smoketest/scripts/cli/base_accel_ppp_test.py
+++ b/smoketest/scripts/cli/base_accel_ppp_test.py
@@ -367,6 +367,27 @@ class BasicAccelPPPTest:
]
)
+ self.set(
+ [
+ "authentication",
+ "radius",
+ "server",
+ radius_server,
+ "backup",
+ ]
+ )
+
+ self.set(
+ [
+ "authentication",
+ "radius",
+ "server",
+ radius_server,
+ "priority",
+ "10",
+ ]
+ )
+
# commit changes
self.cli_commit()
@@ -379,6 +400,8 @@ class BasicAccelPPPTest:
self.assertEqual(f"acct-port=0", server[3])
self.assertEqual(f"req-limit=0", server[4])
self.assertEqual(f"fail-time=0", server[5])
+ self.assertIn('weight=10', server)
+ self.assertIn('backup', server)
def test_accel_ipv4_pool(self):
self.basic_config(is_gateway=False, is_client_pool=False)