From: Yu Watanabe Date: Mon, 11 Jul 2022 20:32:10 +0000 (+0200) Subject: test-network: support to remove routing policy rules with l3mdev flag X-Git-Tag: v252-rc1~677^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23980%2Fhead;p=thirdparty%2Fsystemd.git test-network: support to remove routing policy rules with l3mdev flag --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index a7ac4dbec58..7a791af0031 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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:]))