mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-18 20:37:57 +00:00
Add more informations in the debug status page
* Number of VM in a project * Number of client connected
This commit is contained in:
parent
a0987bbc92
commit
31046358cc
@ -459,6 +459,13 @@ class Project:
|
|||||||
|
|
||||||
self._listeners.remove(queue)
|
self._listeners.remove(queue)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def listeners(self):
|
||||||
|
"""
|
||||||
|
List of current clients listening for event in this projects
|
||||||
|
"""
|
||||||
|
return self._listeners
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def list_files(self):
|
def list_files(self):
|
||||||
"""
|
"""
|
||||||
|
@ -6,11 +6,23 @@
|
|||||||
The purpose of this page is to help for GNS3 debug.
|
The purpose of this page is to help for GNS3 debug.
|
||||||
|
|
||||||
<h2>Opened projects</h2>
|
<h2>Opened projects</h2>
|
||||||
<ul>
|
<table border="1">
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>ID</td>
|
||||||
|
<th>VMs</th>
|
||||||
|
<th>Clients connected</th>
|
||||||
|
</tr>
|
||||||
{% for project in project_manager.projects %}
|
{% for project in project_manager.projects %}
|
||||||
<li>{{project.name}} ({{project.id}})</li>
|
<tr>
|
||||||
|
<td>{{project.name}}</td>
|
||||||
|
<td>{{project.id}}</td>
|
||||||
|
<td>{{project.vms|length}}</td>
|
||||||
|
<td>{{project.listeners|length}}</td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
<h2>Ports reserved by GNS3</h2>
|
<h2>Ports reserved by GNS3</h2>
|
||||||
<h3>TCP</h3>
|
<h3>TCP</h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user