diff --git a/lib/network_utils.pm b/lib/network_utils.pm index 0cc50677ea20..3e349702a5e8 100644 --- a/lib/network_utils.pm +++ b/lib/network_utils.pm @@ -44,7 +44,7 @@ sub setup_static_network { assert_script_run qq(echo -e "\\nSTARTMODE='auto'\\nBOOTPROTO='static'\\nIPADDR='$ip'\\nMTU='$mtu'">/etc/sysconfig/network/ifcfg-$iface); assert_script_run 'rcnetwork restart'; assert_script_run 'ip addr'; - assert_script_run "ping -c 1 $gw || journalctl -b --no-pager -o short-precise > /dev/$serialdev"; + assert_script_run "ping -c 1 $gw", fail_message => 'Gateway is not reachable, please check your network configuration and setups'; assert_script_run "ip -6 addr add $args{ipv6} dev $iface" if exists $args{ipv6}; }