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>
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 @@
<- { "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'} }