do not ignore errors on tap_unplug

This commit is contained in:
Dietmar Maurer 2014-05-08 15:45:25 +02:00
parent 011c581720
commit 8cd00f4b24

View File

@ -839,7 +839,7 @@ my $vmconfig_update_net = sub {
}
if(($newnet->{bridge} ne $oldnet->{bridge}) || ($newnet->{tag} ne $oldnet->{tag}) || ($newnet->{firewall} ne $oldnet->{firewall})){
eval{PVE::Network::tap_unplug($iface, $oldnet->{bridge}, $oldnet->{tag}, $oldnet->{firewall});};
PVE::Network::tap_unplug($iface);
PVE::Network::tap_plug($iface, $newnet->{bridge}, $newnet->{tag}, $newnet->{firewall});
}