1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-05 13:18:06 +03:00

test-network: support to remove routing policy rules with l3mdev flag

This commit is contained in:
Yu Watanabe 2022-07-11 22:32:10 +02:00
parent b5dac5b0de
commit e755ad61ba

View File

@ -431,7 +431,7 @@ def flush_routing_policy_rules():
have = True
print(f'### Removing IPv{ipv} routing policy rules that did not exist when the test started.')
print(f'# {line}')
words = line.split()
words = line.replace('lookup [l3mdev-table]', 'l3mdev').split()
priority = words[0].rstrip(':')
call(f'ip -{ipv} rule del priority {priority} ' + ' '.join(words[1:]))