mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-15 12:59:06 +00:00
parent
4cd5ec5613
commit
90d55fcb8a
@ -228,6 +228,8 @@ class Router(BaseVM):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
status = yield from self._hypervisor.send('vm get_status "{name}"'.format(name=self._name))
|
status = yield from self._hypervisor.send('vm get_status "{name}"'.format(name=self._name))
|
||||||
|
if len(status) == 0:
|
||||||
|
raise DynamipsError("Can't get vm {name} status".format(name=self._name))
|
||||||
return self._status[int(status[0])]
|
return self._status[int(status[0])]
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
|
Loading…
Reference in New Issue
Block a user