aboutgitcodebugslistschat
path: root/test/icmp/passt_in_ns
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-10 12:32:42 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-15 09:38:10 +0200
commit2320ac3349789551e9c7500dba03e04b9ac02f41 (patch)
tree693d5ed12c2eb19061e1fc6e871199012a2d8db0 /test/icmp/passt_in_ns
parent6703da44c16b9bdfc4d959db270961d8ab826570 (diff)
downloadpasst-2320ac3349789551e9c7500dba03e04b9ac02f41.tar
passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.gz
passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.bz2
passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.lz
passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.xz
passt-2320ac3349789551e9c7500dba03e04b9ac02f41.tar.zst
passt-2320ac3349789551e9c7500dba03e04b9ac02f41.zip
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 <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/icmp/passt_in_ns')
-rw-r--r--test/icmp/passt_in_ns4
1 files changed, 2 insertions, 2 deletions
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__