1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +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:
Julien Duponchelle 2015-12-22 15:19:38 +01:00
parent a0987bbc92
commit 31046358cc
2 changed files with 22 additions and 3 deletions

View File

@ -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):
""" """

View File

@ -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>