Commit 8fc64348 authored by Matous Holinka's avatar Matous Holinka

mh-bird_tables: argument 'table' added

parent ad889128
......@@ -13,12 +13,14 @@ def test_krt_routes(key: str, dev: str, ip: str) -> None:
check_krt_routes_timeout(key, dev, ip)
def save_krt_routes(key: str, dev: str, ip: str, loc: str = "temp") -> None:
def save_krt_routes(
key: str, dev: str, ip: str, loc: str = "temp", table: str = "main"
) -> None:
os.system(
f"""\
ip netns exec {dev} \
./tests/get_stdout_krt '{ip}'\
'table main' > \
'table {table}' > \
{loc}/{key}-{dev}
"""
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment