From d071f6be51932ac30d0d585f74e38f9c8f6be769 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 13:33:57 +0200 Subject: [PATCH] qmp-commands: move 'netdev_del' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- 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 9d1a92abbf..9e26cfe970 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -205,21 +205,6 @@ Example: <- { "return": { "status": "active", "completed": 1024000, "total": 2048000 } } -netdev_del ----------- - -Remove host network device. - -Arguments: - -- "id": the device's ID, must be unique (json-string) - -Example: - --> { "execute": "netdev_del", "arguments": { "id": "netdev1" } } -<- { "return": {} } - - object-add ---------- diff --git a/qapi-schema.json b/qapi-schema.json index 95ed7d595c..4cb639f3fc 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3366,6 +3366,12 @@ # If @id is not a valid network backend, DeviceNotFound # # Since: 0.14.0 +# +# Example: +# +# -> { "execute": "netdev_del", "arguments": { "id": "netdev1" } } +# <- { "return": {} } +# ## { 'command': 'netdev_del', 'data': {'id': 'str'} } -- 2.11.0