A debug status page embed in the server

This commit is contained in:
Julien Duponchelle committed 2015-12-18 14:38:26 +01:00
1 parent 480ca037cd
commit 286cd7a3ac
4 files changed
+50

No files matched your search

+2
View File
@@ -15,6 +15,8 @@
<a href="/backup/images.tar">Backup images</a>
|
<a href="/backup/projects.tar">Backup projects</a>
|
<a href="/backup/projects.tar">Status</a>
</div>
{% block body %}{% endblock %}
</body>
+29
View File
@@ -0,0 +1,29 @@
{% extends "layout.html" %}
{% block body %}
<h1>
Server status
</h1>
The purpose of this page is to help for GNS3 debug.
<h2>Opened projects</h2>
<ul>
{% for project in project_manager.projects %}
<li>{{project.name}} ({{project.id}})</li>
{% endfor %}
</ul>
<h2>Ports reserved by GNS3</h2>
<h3>TCP</h3>
<ul>
{% for port in port_manager.tcp_ports %}
<li>{{port}}</li>
{% endfor %}
</ul>
<h3>UDP</h3>
<ul>
{% for port in port_manager.udp_ports %}
<li>{{port}}</li>
{% endfor %}
</ul>
{% endblock %}