diff options
author | Daniil Baturin <daniil@vyos.io> | 2025-07-01 15:43:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-01 15:43:36 +0100 |
commit | 7dc6d3875c5caa5bafea9ca3ebdcd19503927996 (patch) | |
tree | 3055492ed099e1b3236bdf31596f396053249b07 /smoketest/scripts/cli/test_qos.py | |
parent | d2feae09c4cfede2960ca07418168d81f9144de3 (diff) | |
parent | e7e55a2d3bc3547422583d8f5b3a5a13299a4645 (diff) | |
download | vyos-1x-7dc6d3875c5caa5bafea9ca3ebdcd19503927996.tar.gz vyos-1x-7dc6d3875c5caa5bafea9ca3ebdcd19503927996.zip |
Merge pull request #4584 from factor2431/add-cake-features
T7589: Add no-split-gso and ack-filter for CAKE
Diffstat (limited to 'smoketest/scripts/cli/test_qos.py')
-rwxr-xr-x | smoketest/scripts/cli/test_qos.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_qos.py b/smoketest/scripts/cli/test_qos.py index b3ed7f6dc..4b507852f 100755 --- a/smoketest/scripts/cli/test_qos.py +++ b/smoketest/scripts/cli/test_qos.py @@ -884,6 +884,8 @@ class TestQoS(VyOSUnitTestSHIM.TestCase): base_path + ['policy', 'cake', policy_name, 'bandwidth', str(bandwidth)] ) self.cli_set(base_path + ['policy', 'cake', policy_name, 'rtt', str(rtt)]) + self.cli_set(base_path + ['policy', 'cake', policy_name, 'no-split-gso']) + self.cli_set(base_path + ['policy', 'cake', policy_name, 'ack-filter', 'aggressive']) # commit changes self.cli_commit() @@ -899,6 +901,23 @@ class TestQoS(VyOSUnitTestSHIM.TestCase): self.assertFalse(tmp['options']['ingress']) self.assertFalse(tmp['options']['nat']) self.assertTrue(tmp['options']['raw']) + self.assertFalse(tmp['options']['split_gso']) + self.assertEqual(tmp['options']['ack-filter'], 'aggressive') + + self.cli_delete(base_path + ['policy', 'cake', policy_name, 'ack-filter', 'aggressive']) + self.cli_commit() + tmp = get_tc_qdisc_json(interface) + self.assertEqual(tmp['options']['ack-filter'], 'enabled') + + self.cli_delete(base_path + ['policy', 'cake', policy_name, 'ack-filter']) + self.cli_commit() + tmp = get_tc_qdisc_json(interface) + self.assertEqual(tmp['options']['ack-filter'], 'disabled') + + self.cli_delete(base_path + ['policy', 'cake', policy_name, 'no-split-gso']) + self.cli_commit() + tmp = get_tc_qdisc_json(interface) + self.assertTrue(tmp['options']['split_gso']) nat = True for flow_isolation in [ |