aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:33:57 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:29 +0100
commitd071f6be51932ac30d0d585f74e38f9c8f6be769 (patch)
treea8d40380440c48aea20654204bed4263f06022c7
parentaa72941bccda04854f888ba50c4970a86db74b33 (diff)
downloadqemu-d071f6be51932ac30d0d585f74e38f9c8f6be769.zip
qemu-d071f6be51932ac30d0d585f74e38f9c8f6be769.tar.gz
qemu-d071f6be51932ac30d0d585f74e38f9c8f6be769.tar.bz2
qmp-commands: move 'netdev_del' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt15
-rw-r--r--qapi-schema.json6
2 files changed, 6 insertions, 15 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 9d1a92a..9e26cfe 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -205,21 +205,6 @@ Example:
<- { "return": { "status": "active", "completed": 1024000,
"total": 2048000 } }
-netdev_del
-----------
-
-Remove host network device.
-
-Arguments:
-
-- "id": the device's ID, must be unique (json-string)
-
-Example:
-
--> { "execute": "netdev_del", "arguments": { "id": "netdev1" } }
-<- { "return": {} }
-
-
object-add
----------
diff --git a/qapi-schema.json b/qapi-schema.json
index 95ed7d5..4cb639f 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3366,6 +3366,12 @@
# If @id is not a valid network backend, DeviceNotFound
#
# Since: 0.14.0
+#
+# Example:
+#
+# -> { "execute": "netdev_del", "arguments": { "id": "netdev1" } }
+# <- { "return": {} }
+#
##
{ 'command': 'netdev_del', 'data': {'id': 'str'} }