Received: from eggs.gnu.org ([2001:4830:134:3::10]:38535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0G8-0002xk-2n for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0G3-00043l-9w for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0G3-00043b-4d for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:25:31 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AD12E3D978 for ; Thu, 22 Sep 2016 09:25:30 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 13:22:59 +0400 Message-Id: <20160922092305.2895-25-marcandre.lureau@redhat.com> In-Reply-To: <20160922092305.2895-1-marcandre.lureau@redhat.com> References: <20160922092305.2895-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 24/30] qmp-commands: move 'netdev_add' doc to schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- 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 } } =20 -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 Q= EMU's - manual - netdev_del ---------- =20 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'}, --=20 2.10.0