qmp-commands: move 'device_del' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
		
							parent
							
								
									a4df6eff46
								
							
						
					
					
						commit
						e389c0049a
					
				| 
						 | 
				
			
			@ -111,25 +111,6 @@ Notes:
 | 
			
		|||
(2) It's possible to list device properties by running QEMU with the
 | 
			
		||||
    "-device DEVICE,\?" command-line argument, where DEVICE is the device's name
 | 
			
		||||
 | 
			
		||||
device_del
 | 
			
		||||
----------
 | 
			
		||||
 | 
			
		||||
Remove a device.
 | 
			
		||||
 | 
			
		||||
Arguments:
 | 
			
		||||
 | 
			
		||||
- "id": the device's ID or QOM path (json-string)
 | 
			
		||||
 | 
			
		||||
Example:
 | 
			
		||||
 | 
			
		||||
-> { "execute": "device_del", "arguments": { "id": "net1" } }
 | 
			
		||||
<- { "return": {} }
 | 
			
		||||
 | 
			
		||||
Example:
 | 
			
		||||
 | 
			
		||||
-> { "execute": "device_del", "arguments": { "id": "/machine/peripheral-anon/device[0]" } }
 | 
			
		||||
<- { "return": {} }
 | 
			
		||||
 | 
			
		||||
send-key
 | 
			
		||||
----------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3114,7 +3114,7 @@
 | 
			
		|||
#
 | 
			
		||||
# Remove a device from a guest
 | 
			
		||||
#
 | 
			
		||||
# @id: the name or QOM path of the device
 | 
			
		||||
# @id: the device's ID or QOM path
 | 
			
		||||
#
 | 
			
		||||
# Returns: Nothing on success
 | 
			
		||||
#          If @id is not a valid device, DeviceNotFound
 | 
			
		||||
| 
						 | 
				
			
			@ -3127,6 +3127,17 @@
 | 
			
		|||
#        for all devices.
 | 
			
		||||
#
 | 
			
		||||
# Since: 0.14.0
 | 
			
		||||
#
 | 
			
		||||
# Example:
 | 
			
		||||
#
 | 
			
		||||
# -> { "execute": "device_del",
 | 
			
		||||
#      "arguments": { "id": "net1" } }
 | 
			
		||||
# <- { "return": {} }
 | 
			
		||||
#
 | 
			
		||||
# -> { "execute": "device_del",
 | 
			
		||||
#      "arguments": { "id": "/machine/peripheral-anon/device[0]" } }
 | 
			
		||||
# <- { "return": {} }
 | 
			
		||||
#
 | 
			
		||||
##
 | 
			
		||||
{ 'command': 'device_del', 'data': {'id': 'str'} }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue