From e755ad61ba0afdde69c8b54d5abac1b226801d09 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 11 Jul 2022 22:32:10 +0200 Subject: [PATCH] test-network: support to remove routing policy rules with l3mdev flag --- test/test-network/systemd-networkd-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:])) -- 2.47.3