From 7e20b16919e0a8c5040a280416b14ba8c3078fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 15:12:36 +0200 Subject: [PATCH] qmp-commands: move 'query-rocker-ports' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 16 ---------------- qapi/rocker.json | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 903b065c12..f4a5dbf9bd 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -312,22 +312,6 @@ Example: -> { "execute": "trace-event-set-state", "arguments": { "name": "qemu_memalign", "enable": "true" } } <- { "return": {} } -Show rocker switch ports ------------------------- - -Arguments: - -- "name": switch name - -Example: - --> { "execute": "query-rocker-ports", "arguments": { "name": "sw1" } } -<- { "return": [ {"duplex": "full", "enabled": true, "name": "sw1.1", - "autoneg": "off", "link-up": true, "speed": 10000}, - {"duplex": "full", "enabled": true, "name": "sw1.2", - "autoneg": "off", "link-up": true, "speed": 10000} - ]} - Show rocker switch OF-DPA flow tables ------------------------------------- diff --git a/qapi/rocker.json b/qapi/rocker.json index 547864bb90..19ae4982eb 100644 --- a/qapi/rocker.json +++ b/qapi/rocker.json @@ -90,11 +90,21 @@ ## # @query-rocker-ports: # -# Return rocker switch information. +# Return rocker switch port information. # -# Returns: @Rocker information +# Returns: a list of @RockerPort information # # Since: 2.4 +# +# Example: +# +# -> { "execute": "query-rocker-ports", "arguments": { "name": "sw1" } } +# <- { "return": [ {"duplex": "full", "enabled": true, "name": "sw1.1", +# "autoneg": "off", "link-up": true, "speed": 10000}, +# {"duplex": "full", "enabled": true, "name": "sw1.2", +# "autoneg": "off", "link-up": true, "speed": 10000} +# ]} +# ## { 'command': 'query-rocker-ports', 'data': { 'name': 'str' },