From 2320ac3349789551e9c7500dba03e04b9ac02f41 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 10 Jun 2022 12:32:42 +1000 Subject: Don't abbreviate ip(8) arguments in examples and tests ip(8)'s ability to take abbreviated arguments (e.g. "li sh" instead of "link show") is very handy when using it interactively, but it doesn't make for very readable scripts and examples when shown that way. Signed-off-by: David Gibson --- test/icmp/passt_in_ns | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/icmp') diff --git a/test/icmp/passt_in_ns b/test/icmp/passt_in_ns index 38a9a4f..e1d9f7b 100644 --- a/test/icmp/passt_in_ns +++ b/test/icmp/passt_in_ns @@ -21,13 +21,13 @@ nstools ip jq sleep gtools ping ip jq test ICMP echo: guest to ns -nsout IFNAME_NS ip -j li sh | jq -rM '.[] | select(.link_type == "ether").ifname' +nsout IFNAME_NS ip -j link show | jq -rM '.[] | select(.link_type == "ether").ifname' ns ip addr add 192.0.2.1/32 dev __IFNAME_NS__ guest ping -c1 -w1 192.0.2.1 ns ip addr del 192.0.2.1/32 dev __IFNAME_NS__ test ICMPv6 echo: guest to ns ns ip addr add 2001:db8::1 dev __IFNAME_NS__ && sleep 2 # DAD -gout IFNAME ip -j li sh | jq -rM '.[] | select(.link_type == "ether").ifname' +gout IFNAME ip -j link show | jq -rM '.[] | select(.link_type == "ether").ifname' guest ping -c1 -w1 2001:db8::1 ns ip addr del 2001:db8::1 dev __IFNAME_NS__ -- cgit v1.2.3