summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-07 21:53:28 +0100
committerGitHub <noreply@github.com>2024-02-07 21:53:28 +0100
commit98c6434e7433e6a0aa1034b39c9130d390bbe591 (patch)
treea8e2a2b55b485555763415bd5841979f5ab18326 /smoketest
parentb54503188d73c7c41b1b18d2abc3758b9ead6de3 (diff)
parent117fbcd6237b59f54f2c1c66986a8ce073808c84 (diff)
downloadvyos-1x-98c6434e7433e6a0aa1034b39c9130d390bbe591.tar.gz
vyos-1x-98c6434e7433e6a0aa1034b39c9130d390bbe591.zip
Merge pull request #2952 from c-po/vrf
vrf: T5973: module is now statically compiled into the kernel
Diffstat (limited to 'smoketest')
-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'