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:
parent
b5dac5b0de
commit
e755ad61ba
@ -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:]))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user