]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-monitor.hx
monitor: New commands netdev_add, netdev_del
[mirror_qemu.git] / qemu-monitor.hx
index d290b4b57fcbda6a9aa02251f8b9587f7856e711..31087bdd35eacfcfd74bb278cc73d28ed5680b2c 100644 (file)
@@ -912,6 +912,36 @@ STEXI
 @item host_net_remove
 @findex host_net_remove
 Remove host VLAN client.
+ETEXI
+
+    {
+        .name       = "netdev_add",
+        .args_type  = "netdev:O",
+        .params     = "[user|tap|socket],id=str[,prop=value][,...]",
+        .help       = "add host network device",
+        .user_print = monitor_user_noop,
+        .mhandler.cmd_new = do_netdev_add,
+    },
+
+STEXI
+@item netdev_add
+@findex netdev_add
+Add host network device.
+ETEXI
+
+    {
+        .name       = "netdev_del",
+        .args_type  = "id:s",
+        .params     = "id",
+        .help       = "remove host network device",
+        .user_print = monitor_user_noop,
+        .mhandler.cmd_new = do_netdev_del,
+    },
+
+STEXI
+@item netdev_del
+@findex netdev_del
+Remove host network device.
 ETEXI
 
 #ifdef CONFIG_SLIRP