From c396355befb37d31ee8118fb5994aed63b139843 Mon Sep 17 00:00:00 2001 From: Hunt Xu Date: Mon, 8 Jan 2018 16:11:33 +0800 Subject: [PATCH] Use "ip neigh" instead of "arp -n" in worlddump.py Worlddumping on a system without net-tools package gets an error showing "arp: not found". As iproute2 can also show arp tables, we use it instead. Change-Id: I0cd83e6d14959dc5a1147c487b11f27fb92aa20a --- tools/worlddump.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/worlddump.py b/tools/worlddump.py index 6fff1497a7..750608210a 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -164,8 +164,7 @@ def network_dump(): _header("Network Dump") _dump_cmd("brctl show") - _dump_cmd("arp -n") - ip_cmds = ["addr", "link", "route"] + ip_cmds = ["neigh", "addr", "link", "route"] for cmd in ip_cmds + ['netns']: _dump_cmd("ip %s" % cmd) for netns_ in _netns_list():