aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:33:15 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:29 +0100
commitaa72941bccda04854f888ba50c4970a86db74b33 (patch)
treec03a064e7e6dc401f330088e2c2b6bf0be5d60d7 /qapi-schema.json
parentee332b5125e416600d0b47689d8050f479b38479 (diff)
qmp-commands: move 'netdev_add' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index c28817169b..95ed7d595c 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3342,6 +3342,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'},