diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-07 17:40:11 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-02-07 17:40:11 +0100 |
commit | 117fbcd6237b59f54f2c1c66986a8ce073808c84 (patch) | |
tree | 1c9236f98eb71053cfe7f9b3b60738571de80bf6 /smoketest/scripts/cli | |
parent | 9d74ae52092e97aa0ef285df4d44a5eb7ae93fbf (diff) | |
download | vyos-1x-117fbcd6237b59f54f2c1c66986a8ce073808c84.tar.gz vyos-1x-117fbcd6237b59f54f2c1c66986a8ce073808c84.zip |
vrf: T5973: module is now statically compiled into the kernel
Always enable VRF strict_mode
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_vrf.py | 7 |
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' |