diff --git a/tools/gate/funcs/network.sh b/tools/gate/funcs/network.sh index 1cf45cfe87..c178dcdb91 100755 --- a/tools/gate/funcs/network.sh +++ b/tools/gate/funcs/network.sh @@ -17,7 +17,7 @@ function net_default_iface { } function net_default_host_addr { - sudo ip addr | awk "/inet / && /$(net_default_iface)/{print \$2; exit }" + sudo ip addr | awk "/inet / && /$(net_default_iface)/{print \$2; exit }" | sed 's/\/32/\/24/' } function net_default_host_ip {