]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: fix example of FAILOVER_NEGOTIATED event
authorVictor Toso <victortoso@redhat.com>
Mon, 28 Mar 2022 14:05:58 +0000 (16:05 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 31 Mar 2022 10:34:52 +0000 (12:34 +0200)
Example output lacks mandatory member @timestamp.  Provide it.

Event's documentation is not properly formatted. Fix it by:
- Adding @ to "device-id"
- Adding extra line for "Since" section

Signed-off-by: Victor Toso <victortoso@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20220328140604.41484-9-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/net.json

index 7fab2e7cd8aa5f5c504d3bad0c1e3d67037f117e..0d4578bd07e2c7d710e83f9542e76b068ee13896 100644 (file)
 # Failover primary devices which were hidden (not hotplugged when requested)
 # before will now be hotplugged by the virtio-net standby device.
 #
-# device-id: QEMU device id of the unplugged device
+# @device-id: QEMU device id of the unplugged device
+#
 # Since: 4.2
 #
 # Example:
 #
 # <- { "event": "FAILOVER_NEGOTIATED",
-#      "data": "net1" }
+#      "data": { "device-id": "net1" },
+#      "timestamp": { "seconds": 1368697518, "microseconds": 326866 } }
 #
 ##
 { 'event': 'FAILOVER_NEGOTIATED',