diff --git a/lib/tapnet.pm b/lib/tapnet.pm index 4e36cd84..a66e2525 100644 --- a/lib/tapnet.pm +++ b/lib/tapnet.pm @@ -52,6 +52,12 @@ sub setup_tap_static { my $conftext = "DEVICE=eth0\nBOOTPROTO=none\nIPADDR=$ip\nGATEWAY=10.0.2.2\nPREFIX=24\nDEFROUTE=yes\nONBOOT=yes" . $dnstext; assert_script_run "printf '${conftext}\n' > /etc/sysconfig/network-scripts/ifcfg-eth0"; assert_script_run "systemctl restart NetworkManager.service"; + # FIXME workaround for + # https://bugzilla.redhat.com/show_bug.cgi?id=1739148 + # remove when that's resolved + script_run 'nmcli con down "Wired connection 1"'; + script_run 'nmcli con down "System eth0"'; + script_run 'nmcli con up "System eth0"'; # the above doesn't seem to reliably set up resolv.conf, so... clone_host_file "/etc/resolv.conf"; }