mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
parent
54bccb0628
commit
bb7eda63af
@ -710,10 +710,18 @@ class QemuVM(BaseVM):
|
|||||||
"""
|
"""
|
||||||
Returns this VM suspend status (running|paused)
|
Returns this VM suspend status (running|paused)
|
||||||
|
|
||||||
|
Status are extracted from:
|
||||||
|
https://github.com/qemu/qemu/blob/master/qapi-schema.json#L152
|
||||||
|
|
||||||
:returns: status (string)
|
:returns: status (string)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
result = yield from self._control_vm("info status", [b"running", b"paused"])
|
result = yield from self._control_vm("info status", [
|
||||||
|
b"debug", b"inmigrate", b"internal-error", b"io-error",
|
||||||
|
b"paused", b"postmigrate", b"prelaunch", b"finish-migrate",
|
||||||
|
b"restore-vm", b"running", b"save-vm", b"shutdown", b"suspended",
|
||||||
|
b"watchdog", b"guest-panicked"
|
||||||
|
])
|
||||||
return result.rsplit(' ', 1)[1]
|
return result.rsplit(' ', 1)[1]
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
Reference in New Issue
Block a user