@@ -3427,19 +3427,24 @@ def test_qdisc(self):
3427
3427
3428
3428
output = check_output ('tc -d class show dev dummy98' )
3429
3429
print (output )
3430
- self .assertRegex (output , 'class htb 2:30 root leaf 30:' )
3431
- self .assertRegex (output , 'class htb 2:31 root leaf 31:' )
3432
- self .assertRegex (output , 'class htb 2:32 root leaf 32:' )
3433
- self .assertRegex (output , 'class htb 2:33 root leaf 33:' )
3434
- self .assertRegex (output , 'class htb 2:34 root leaf 34:' )
3435
- self .assertRegex (output , 'class htb 2:35 root leaf 35:' )
3436
- self .assertRegex (output , 'class htb 2:36 root leaf 36:' )
3437
- self .assertRegex (output , 'class htb 2:37 root leaf 37:' )
3438
- self .assertRegex (output , 'class htb 2:38 root leaf 38:' )
3439
- self .assertRegex (output , 'class htb 2:39 root leaf 39:' )
3440
- self .assertRegex (output , 'class htb 2:3a root leaf 3a:' )
3441
- self .assertRegex (output , 'class htb 2:3b root leaf 3b:' )
3442
- self .assertRegex (output , 'class htb 2:3c root leaf 3c:' )
3430
+ # Here (:|prio) is a workaround for a bug in iproute2 v6.2.0 caused by
3431
+ # https://github.com/shemminger/iproute2/commit/010a8388aea11e767ba3a2506728b9ad9760df0e
3432
+ # which is fixed in v6.3.0 by
3433
+ # https://github.com/shemminger/iproute2/commit/4e0e56e0ef05387f7f5d8ab41fe6ec6a1897b26d
3434
+ self .assertRegex (output , 'class htb 2:30 root leaf 30(:|prio) ' )
3435
+ self .assertRegex (output , 'class htb 2:31 root leaf 31(:|prio) ' )
3436
+ self .assertRegex (output , 'class htb 2:32 root leaf 32(:|prio) ' )
3437
+ self .assertRegex (output , 'class htb 2:33 root leaf 33(:|prio) ' )
3438
+ self .assertRegex (output , 'class htb 2:34 root leaf 34(:|prio) ' )
3439
+ self .assertRegex (output , 'class htb 2:35 root leaf 35(:|prio) ' )
3440
+ self .assertRegex (output , 'class htb 2:36 root leaf 36(:|prio) ' )
3441
+ self .assertRegex (output , 'class htb 2:37 root leaf 37(:|prio) ' )
3442
+ self .assertRegex (output , 'class htb 2:38 root leaf 38(:|prio) ' )
3443
+ self .assertRegex (output , 'class htb 2:39 root leaf 39(:|prio) ' )
3444
+ self .assertRegex (output , 'class htb 2:3a root leaf 3a(:|prio) ' )
3445
+ self .assertRegex (output , 'class htb 2:3b root leaf 3b(:|prio) ' )
3446
+ self .assertRegex (output , 'class htb 2:3c root leaf 3c(:|prio) ' )
3447
+
3443
3448
self .assertRegex (output , 'prio 1 quantum 4000 rate 1Mbit overhead 100 ceil 500Kbit' )
3444
3449
self .assertRegex (output , 'burst 123456' )
3445
3450
self .assertRegex (output , 'cburst 123457' )
0 commit comments