mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
test-network: add tests for vlan QoS mapping
This commit is contained in:
parent
4194478af8
commit
73d24e45f8
@ -3,7 +3,9 @@ MTUBytes=2000
|
||||
|
||||
[VLAN]
|
||||
Id=99
|
||||
GVRP=true
|
||||
MVRP=true
|
||||
LooseBinding=true
|
||||
ReorderHeader=true
|
||||
GVRP=yes
|
||||
MVRP=yes
|
||||
LooseBinding=yes
|
||||
ReorderHeader=yes
|
||||
EgressQOSMaps=0-1 1-3 10-3 6-6 7-7
|
||||
IngressQOSMaps=15-13 20-100
|
||||
|
@ -1285,12 +1285,14 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
|
||||
|
||||
output = check_output('ip -d link show vlan99')
|
||||
print(output)
|
||||
self.assertRegex(output, ' mtu 2000 ')
|
||||
self.assertRegex(output, 'REORDER_HDR')
|
||||
self.assertRegex(output, 'LOOSE_BINDING')
|
||||
self.assertRegex(output, 'GVRP')
|
||||
self.assertRegex(output, 'MVRP')
|
||||
self.assertRegex(output, ' id 99 ')
|
||||
self.assertIn(' mtu 2000 ', output)
|
||||
self.assertIn('REORDER_HDR', output)
|
||||
self.assertIn('LOOSE_BINDING', output)
|
||||
self.assertIn('GVRP', output)
|
||||
self.assertIn('MVRP', output)
|
||||
self.assertIn(' id 99 ', output)
|
||||
self.assertIn('ingress-qos-map { 4:100 7:13 }', output)
|
||||
self.assertIn('egress-qos-map { 0:1 1:3 6:6 7:7 10:3 }', output)
|
||||
|
||||
output = check_output('ip -4 address show dev test1')
|
||||
print(output)
|
||||
|
Loading…
Reference in New Issue
Block a user