diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-01-15 16:02:57 +0000 |
|---|---|---|
| committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-01-27 09:43:36 +0000 |
| commit | 1659d7b60ee1128c365c597ee85697c051c23e4b (patch) | |
| tree | 35e9d47e24019d3f95de48adf92dca63b369ed26 /smoketest/scripts/cli | |
| parent | a89a9c758aa1b789fa6217d0c43e0f09598d4d84 (diff) | |
| download | vyos-1x-1659d7b60ee1128c365c597ee85697c051c23e4b.tar.gz vyos-1x-1659d7b60ee1128c365c597ee85697c051c23e4b.zip | |
LCP: enable by default route-no-paths
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_vpp.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/smoketest/scripts/cli/test_vpp.py b/smoketest/scripts/cli/test_vpp.py index be2164c19..a58604a96 100755 --- a/smoketest/scripts/cli/test_vpp.py +++ b/smoketest/scripts/cli/test_vpp.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2023-2024 VyOS Inc. +# Copyright (C) 2023-2025 VyOS Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -75,7 +75,6 @@ class TestVPP(VyOSUnitTestSHIM.TestCase): poll_sleep = '0' self.cli_set(base_path + ['settings', 'cpu', 'main-core', main_core]) - self.cli_set(base_path + ['settings', 'lcp', 'route-no-paths']) self.cli_set(base_path + ['settings', 'unix', 'poll-sleep-usec', poll_sleep]) # commit changes @@ -99,7 +98,15 @@ class TestVPP(VyOSUnitTestSHIM.TestCase): # route-no-paths is not present in the output # looks like vpp bug _, out = rc_cmd('sudo vppctl show lcp') - required_str = 'route-no-paths' + required_str = 'lcp route-no-paths on' + self.assertIn(required_str, out) + + self.cli_set(base_path + ['settings', 'lcp', 'ignore-kernel-routes']) + self.cli_commit() + + # check disabled 'route no path' + _, out = rc_cmd('sudo vppctl show lcp') + required_str = 'lcp route-no-paths off' self.assertIn(required_str, out) def test_02_vpp_vxlan(self): |
