Skip to content

Commit

Permalink
Actually validate network connectivity on NM MM setup
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Feb 23, 2024
1 parent db9d3de commit 1599f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mm_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use Exporter;

use testapi;
use version_utils 'is_opensuse';
use utils qw(validate_script_output_retry);

our @EXPORT = qw(configure_hostname get_host_resolv_conf is_networkmanager restart_networking
configure_static_ip configure_dhcp configure_default_gateway configure_static_dns
Expand Down Expand Up @@ -237,7 +238,7 @@ sub restart_networking {
assert_script_run 'nmcli networking off';
assert_script_run 'nmcli networking on';
# Wait until the connections are configured
assert_script_run 'nmcli networking connectivity check';
validate_script_output_retry('nmcli networking connectivity check', m/full/, delay => 3, retry => 5);
} else {
assert_script_run 'rcnetwork restart';
}
Expand Down

0 comments on commit 1599f5b

Please sign in to comment.