Received: from eggs.gnu.org ([2001:4830:134:3::10]:37569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0ED-0000ym-Dl for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0EB-0003RL-B4 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:23:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0EB-0003Qu-5O for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:23:35 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 B6CBA8E248 for ; Thu, 22 Sep 2016 09:23:34 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 13:22:40 +0400 Message-Id: <20160922092305.2895-6-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 05/30] qmp-commands: move 'set_link' 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 | 15 --------------- qapi-schema.json | 6 ++++++ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index c4caf9c..18a15dc 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1074,21 +1074,6 @@ Example: -> { "execute": "balloon", "arguments": { "value": 536870912 } } <- { "return": {} } =20 -set_link --------- - -Change the link status of a network adapter. - -Arguments: - -- "name": network device name (json-string) -- "up": status is up (json-bool) - -Example: - --> { "execute": "set_link", "arguments": { "name": "e1000.0", "up": fals= e } } -<- { "return": {} } - getfd ----- =20 diff --git a/qapi-schema.json b/qapi-schema.json index e8d6975..958b097 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2266,6 +2266,12 @@ # Notes: Not all network adapters support setting link status. This com= mand # will succeed even if the network adapter does not support link = status # notification. +# +# Example: +# +# -> { "execute": "set_link", "arguments": { "name": "e1000.0", "up": fa= lse } } +# <- { "return": {} } +# ## { 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} } =20 --=20 2.10.0