test-network: also remove IPv6 rules

This commit is contained in:
Yu Watanabe 2020-10-05 22:25:01 +02:00
parent 713bfdaa6c
commit 66493453b3
1 changed files with 3 additions and 0 deletions

View File

@ -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: