mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Web interface for debbuging controller
This commit is contained in:
8 files changed
+151
-8
No files matched your search
@@ -93,6 +93,13 @@ class Project:
|
||||
except KeyError:
|
||||
raise aiohttp.web.HTTPNotFound(text="VM ID {} doesn't exist".format(vm_id))
|
||||
|
||||
@property
|
||||
def vms(self):
|
||||
"""
|
||||
:returns: Dictionnary of the VMS
|
||||
"""
|
||||
return self._vms
|
||||
|
||||
@asyncio.coroutine
|
||||
def addLink(self):
|
||||
"""
|
||||
@@ -111,6 +118,13 @@ class Project:
|
||||
except KeyError:
|
||||
raise aiohttp.web.HTTPNotFound(text="Link ID {} doesn't exist".format(link_id))
|
||||
|
||||
@property
|
||||
def links(self):
|
||||
"""
|
||||
:returns: Dictionnary of the Links
|
||||
"""
|
||||
return self._links
|
||||
|
||||
@asyncio.coroutine
|
||||
def close(self):
|
||||
for hypervisor in self._hypervisors:
|
||||
|
||||
@@ -52,6 +52,10 @@ class VM:
|
||||
def id(self):
|
||||
return self._id
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._name
|
||||
|
||||
@property
|
||||
def vm_type(self):
|
||||
return self._vm_type
|
||||
@@ -76,6 +80,14 @@ class VM:
|
||||
def hypervisor(self):
|
||||
return self._hypervisor
|
||||
|
||||
@property
|
||||
def host(self):
|
||||
"""
|
||||
:returns: Domain or ip for console connection
|
||||
"""
|
||||
return self._hypervisor.host
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def create(self):
|
||||
data = copy.copy(self._properties)
|
||||
|
||||
Reference in new issue
Block a user