From 7de6e0b2eca9ac661a92badef4488d8d6380b06f Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Wed, 21 Oct 2020 13:59:50 +0100 Subject: [PATCH] fix ipv6 flag order in worlddump this change corrects the flag order from 'route -6' to '-6 route' as the -6 flag is an option when used with ip is an argument to the the ip command and not the route subcommand. -6 is accpeted as an argument to the standalone 'route' commannd but not 'ip route' subcommand. Change-Id: Ic2ae472e42b7b455693d0aade48dc5109e1f21ba --- tools/worlddump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/worlddump.py b/tools/worlddump.py index 5a264d2508..22770f15b6 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -165,7 +165,7 @@ def network_dump(): _dump_cmd("bridge link") _dump_cmd("ip link show type bridge") - ip_cmds = ["neigh", "addr", "route", "route -6"] + ip_cmds = ["neigh", "addr", "route", "-6 route"] for cmd in ip_cmds + ['netns']: _dump_cmd("ip %s" % cmd) for netns_ in _netns_list():