]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: support to remove routing policy rules with l3mdev flag 23980/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Jul 2022 20:32:10 +0000 (22:32 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Jul 2022 20:39:26 +0000 (22:39 +0200)
test/test-network/systemd-networkd-tests.py

index a7ac4dbec58d567f197734f3e64b1e2f486c6100..7a791af00316a9c20abcf1f5e372de50a0709a2f 100755 (executable)
@@ -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:]))