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:
parent
1c7a81e626
commit
0b251e8bf9
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user