Browse code

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

Hunt Xu authored on 2018/01/08 17:11:33
Showing 1 changed files
... ...
@@ -164,8 +164,7 @@ def network_dump():
164 164
     _header("Network Dump")
165 165
 
166 166
     _dump_cmd("brctl show")
167
-    _dump_cmd("arp -n")
168
-    ip_cmds = ["addr", "link", "route"]
167
+    ip_cmds = ["neigh", "addr", "link", "route"]
169 168
     for cmd in ip_cmds + ['netns']:
170 169
         _dump_cmd("ip %s" % cmd)
171 170
     for netns_ in _netns_list():