From 4b37156c40c3d7d63ac332e3bb9f85a66c3f5e5e Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 23 Nov 2011 13:11:55 -0200 Subject: qapi: Convert set_link Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- qapi-schema.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'qapi-schema.json') diff --git a/qapi-schema.json b/qapi-schema.json index fea513fc76..1d6fb4d9f4 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -979,3 +979,23 @@ # Notes: Only x86 Virtual Machines support this command. ## { 'command': 'inject-nmi' } + +## +# @set_link: +# +# Sets the link status of a virtual network adapter. +# +# @name: the device name of the virtual network adapter +# +# @up: true to set the link status to be up +# +# Returns: Nothing on success +# If @name is not a valid network device, DeviceNotFound +# +# Since: 0.14.0 +# +# Notes: Not all network adapters support setting link status. This command +# will succeed even if the network adapter does not support link status +# notification. +## +{ 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} } -- cgit v1.2.3