1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

test-network: add testcases for CAKE settings

This commit is contained in:
Yu Watanabe 2021-11-04 05:50:42 +09:00
parent 1c7a81e626
commit 0b251e8bf9
2 changed files with 24 additions and 4 deletions

View File

@ -9,5 +9,15 @@ Address=10.1.2.3/16
[CAKE]
Parent=root
Handle=3a
OverheadBytes=128
Bandwidth=500M
AutoRateIngress=yes
OverheadBytes=128
MPUBytes=20
CompensationMode=atm
UseRawPacketSize=yes
FlowIsolationMode=dual-dst-host
NAT=yes
PriorityQueueingPreset=diffserv8
FirewallMark=0xff00
Wash=yes
SplitGSO=yes

View File

@ -3262,9 +3262,19 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
output = check_output('tc qdisc show dev dummy98')
print(output)
self.assertRegex(output, 'qdisc cake 3a: root')
self.assertRegex(output, 'bandwidth 500Mbit')
self.assertRegex(output, 'overhead 128')
self.assertIn('qdisc cake 3a: root', output)
self.assertIn('bandwidth 500Mbit', output)
self.assertIn('autorate-ingress', output)
self.assertIn('diffserv8', output)
self.assertIn('dual-dsthost', output)
self.assertIn(' nat', output)
self.assertIn(' wash', output)
self.assertIn(' split-gso', output)
self.assertIn(' raw', output)
self.assertIn(' atm', output)
self.assertIn('overhead 128', output)
self.assertIn('mpu 20', output)
self.assertIn('fwmark 0xff00', output)
@expectedFailureIfPIEIsNotAvailable()
def test_qdisc_pie(self):