aboutgitcodebugslistschat
path: root/test/dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'test/dhcp')
-rw-r--r--test/dhcp/passt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dhcp/passt b/test/dhcp/passt
index 3d2e939..f45227a 100644
--- a/test/dhcp/passt
+++ b/test/dhcp/passt
@@ -16,7 +16,7 @@ htools ip jq sed tr head
test Interface name
gout IFNAME ip -j link show | jq -rM '.[] | select(.link_type == "ether").ifname'
-hout HOST_IFNAME ip -j -4 route show|jq -rM '.[] | select(.dst == "default").dev'
+hout HOST_IFNAME ip -j -4 route show|jq -rM '[.[] | select(.dst == "default").dev] | .[0]'
check [ -n "__IFNAME__" ]
test DHCP: address