diff mbox

[RFC,v2,43/47] qmp: Improve netdev_add usage example in the manual

Message ID 1435782155-31412-44-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

Markus Armbruster July 1, 2015, 8:22 p.m. UTC
Add a device option to show how it's done.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 qmp-commands.hx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Eric Blake July 23, 2015, 11:01 p.m. UTC | #1
On 07/01/2015 02:22 PM, Markus Armbruster wrote:
> Add a device option to show how it's done.
> 
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>  qmp-commands.hx | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Perhaps could be squashed with the previous patch.  Or not - up to you.

Reviewed-by: Eric Blake <eblake@redhat.com>
diff mbox

Patch

diff --git a/qmp-commands.hx b/qmp-commands.hx
index 874da31..351173e 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -892,7 +892,9 @@  Arguments:
 
 Example:
 
--> { "execute": "netdev_add", "arguments": { "type": "user", "id": "netdev1" } }
+-> { "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'