test-network: suppress error message in cleanup process

This commit is contained in:
Yu Watanabe 2019-06-14 16:45:50 +09:00
parent 9c5e1c24ad
commit 5239d7b34e
1 changed files with 3 additions and 3 deletions

View File

@ -184,15 +184,15 @@ def remove_links(links):
def remove_fou_ports(ports):
for port in ports:
call('ip fou del port', port)
call('ip fou del port', port, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
def remove_routing_policy_rule_tables(tables):
for table in tables:
call('ip rule del table', table)
call('ip rule del table', table, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
def remove_routes(routes):
for route_type, addr in routes:
call('ip route del', route_type, addr)
call('ip route del', route_type, addr, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
def l2tp_tunnel_remove(tunnel_ids):
output = check_output('ip l2tp show tunnel')