]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: also remove IPv6 rules 17240/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Oct 2020 20:25:01 +0000 (22:25 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Oct 2020 18:23:27 +0000 (03:23 +0900)
test/test-network/systemd-networkd-tests.py

index f2231d670148eea476c9ad0bdeed77d3ba39e8f0..8058122e46e406fd290eb48c843b17469fe705aa 100755 (executable)
@@ -382,6 +382,9 @@ def remove_routing_policy_rule_tables(tables):
         rc = 0
         while rc == 0:
             rc = call('ip rule del table', table, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+        rc = 0
+        while rc == 0:
+            rc = call('ip -6 rule del table', table, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
 
 def remove_routes(routes):
     for route_type, addr in routes: