mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
A debug status page embed in the server
This commit is contained in:
1 parent
480ca037cd
commit
286cd7a3ac
4 files changed
+50
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
Reference in new issue
Block a user