Skip to content

Commit

Permalink
Merge pull request os-autoinst#20638 from os-autoinst/revert-20592-no…
Browse files Browse the repository at this point in the history
…_nm_restart

Revert "Do not automatically restart NM after static configuration"
  • Loading branch information
nicksinger authored Nov 14, 2024
2 parents 6124141 + 3523785 commit 8030cd7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mm_network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ sub setup_static_mm_network {
configure_static_ip(ip => $ip, is_nm => $is_nm);
configure_default_gateway(is_nm => $is_nm);
configure_static_dns(get_host_resolv_conf(), is_nm => $is_nm);
# Previous functions apply NM settings at runtime and no restart is required to apply them.
# Tracking if a restart is required troughout these functions would be cleaner but given their current implementation
# we can get away with not restarting if using NM.
restart_networking(is_nm => $is_nm) unless $is_nm;
restart_networking(is_nm => $is_nm);
}

sub restart_networking {
Expand Down

0 comments on commit 8030cd7

Please sign in to comment.