summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-08 16:14:28 +0000
committerGitHub <noreply@github.com>2024-02-08 16:14:28 +0000
commitec60a936645a22050db1550de12ca1fbb63abfbe (patch)
treea38bd396210e621a8eac110151936c9f4f5f3f68 /smoketest/scripts
parent5f66a2d1422badaac89028d97aa12165a99fbb8a (diff)
parent4e4c645b47e81ec54c8b02d2f4377664e5689a86 (diff)
downloadvyos-1x-ec60a936645a22050db1550de12ca1fbb63abfbe.tar.gz
vyos-1x-ec60a936645a22050db1550de12ca1fbb63abfbe.zip
Merge pull request #2964 from vyos/mergify/bp/sagitta/pr-2952
vrf: T5973: module is now statically compiled into the kernel (backport #2952)
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_vrf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_vrf.py b/smoketest/scripts/cli/test_vrf.py
index 6207a1b41..a3090ee41 100755
--- a/smoketest/scripts/cli/test_vrf.py
+++ b/smoketest/scripts/cli/test_vrf.py
@@ -53,14 +53,17 @@ class VRFTest(VyOSUnitTestSHIM.TestCase):
# call base-classes classmethod
super(VRFTest, cls).setUpClass()
+ def setUp(self):
+ # VRF strict_most ist always enabled
+ tmp = read_file('/proc/sys/net/vrf/strict_mode')
+ self.assertEqual(tmp, '1')
+
def tearDown(self):
# delete all VRFs
self.cli_delete(base_path)
self.cli_commit()
for vrf in vrfs:
self.assertNotIn(vrf, interfaces())
- # If there is no VRF defined, strict_mode should be off
- self.assertEqual(sysctl_read('net.vrf.strict_mode'), '0')
def test_vrf_vni_and_table_id(self):
base_table = '1000'