5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-13 13:17:55 +03:00

qemu_netdevdel : convert to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-02-19 10:22:08 +01:00 committed by Dietmar Maurer
parent d695b5b725
commit 89c1e0f438

View File

@ -2737,12 +2737,8 @@ sub qemu_netdevadd {
sub qemu_netdevdel {
my ($vmid, $deviceid) = @_;
my $ret = vm_human_monitor_command($vmid, "netdev_del $deviceid");
$ret =~ s/^\s+//;
#if the command succeeds, no output is sent. So any non-empty string shows an error
return 1 if $ret eq "";
syslog("err", "deleting netdev failed: $ret");
return undef;
vm_mon_cmd($vmid, "netdev_del", id => $deviceid);
return 1;
}
sub qemu_block_set_io_throttle {