From e0e98535ace2712b9bad1e4ba2b3418787fe181e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 14 Mar 2019 20:21:31 +0100 Subject: [PATCH] Use ping6 on old systems --- p4app/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/p4app/test.py b/p4app/test.py index 0e59e77..02ee6ec 100644 --- a/p4app/test.py +++ b/p4app/test.py @@ -23,7 +23,7 @@ class TestStuff(object): translated_ipv4 = nat64_prefix[int(dst_ipv4)] log.info("Trying to reach {} ({}) from {}".format(dst_ipv4, translated_ipv4, host)) - cmd = "mx h1 ping -c1 {}".format(translated_ipv4).split(" ") + cmd = "mx h1 ping6 -c1 {}".format(translated_ipv4).split(" ") subprocess.call(cmd) @@ -34,7 +34,8 @@ class TestStuff(object): methods = [m for m in methods_dir if re.match("^test", m)] methods = [re.sub("^test_(.*)", r"\1", m) for m in methods] - parser.add_argument('--method', help="which method?", choices=methods, required=True) + parser.add_argument('-m', + '--method', help="which method?", choices=methods, required=True) parser.add_argument('--debug', help='Enable debug logging', action='store_true') parser.add_argument('--verbose', help='Enable verbose logging', action='store_true') parser.add_argument('--multicast-to-controller', help='Send debug multicast to controller', action='store_true')