qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 24/30] qmp-commands: move 'netdev_add' doc to schema


From: Marc-André Lureau
Subject: [Qemu-devel] [PATCH 24/30] qmp-commands: move 'netdev_add' doc to schema
Date: Thu, 22 Sep 2016 13:22:59 +0400

Signed-off-by: Marc-André Lureau <address@hidden>
---
 docs/qmp-commands.txt | 22 ----------------------
 qapi-schema.json      |  8 ++++++++
 2 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 051bbfd..d41a60a 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -193,28 +193,6 @@ Example:
 <- { "return": { "status": "active", "completed": 1024000,
                  "total": 2048000 } }
 
-netdev_add
-----------
-
-Add host network device.
-
-Arguments:
-
-- "type": the device type, "tap", "user", ... (json-string)
-- "id": the device's ID, must be unique (json-string)
-- device options
-
-Example:
-
--> { "execute": "netdev_add",
-     "arguments": { "type": "user", "id": "netdev1",
-                    "dnssearch": "example.org" } }
-<- { "return": {} }
-
-Note: The supported device options are the same ones supported by the '-netdev'
-      command-line argument, which are listed in the '-help' output or QEMU's
-      manual
-
 netdev_del
 ----------
 
diff --git a/qapi-schema.json b/qapi-schema.json
index 381454e..37df72b 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3247,6 +3247,14 @@
 #
 # Returns: Nothing on success
 #          If @type is not a valid network backend, DeviceNotFound
+#
+# Example:
+#
+# -> { "execute": "netdev_add",
+#      "arguments": { "type": "user", "id": "netdev1",
+#                     "dnssearch": "example.org" } }
+# <- { "return": {} }
+#
 ##
 { 'command': 'netdev_add',
   'data': {'type': 'str', 'id': 'str'},
-- 
2.10.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]