diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-23 13:09:45 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:15:27 +0100 |
commit | f9cfb8f729dc11e387daa575ae193c0ad56c8a92 (patch) | |
tree | 564d6a74c633529e059b19b007cd444cfa126987 | |
parent | 149ea099cdee4857f9af7125682f7dadf23c8ac8 (diff) |
qmp-commands: move 'set_link' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | docs/qmp-commands.txt | 15 | ||||
-rw-r--r-- | qapi-schema.json | 7 |
2 files changed, 7 insertions, 15 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index ba4fd1ccda..6038f5cc73 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1088,21 +1088,6 @@ Example: -> { "execute": "balloon", "arguments": { "value": 536870912 } } <- { "return": {} } -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": false } } -<- { "return": {} } - getfd ----- diff --git a/qapi-schema.json b/qapi-schema.json index 1675a9bf16..43b485e145 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2352,6 +2352,13 @@ # Notes: Not all network adapters support setting link status. This command # will succeed even if the network adapter does not support link status # notification. +# +# Example: +# +# -> { "execute": "set_link", +# "arguments": { "name": "e1000.0", "up": false } } +# <- { "return": {} } +# ## { 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} } |