1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-11 09:38:08 +00:00
gns3-server/gns3server/templates/compute.html

63 lines
1.2 KiB
HTML
Raw Normal View History

{% extends "layout.html" %}
2016-03-17 14:15:30 +00:00
{% block head %}
<script>
var socket = new WebSocket("ws://" + location.host + "/v3/compute/notifications/ws");
2016-03-17 14:15:30 +00:00
socket.onopen = function (event) {
document.getElementById("notifications").innerText = "Connected";
};
socket.onmessage = function (event) {
document.getElementById("notifications").innerText = event.data + "\n" + document.getElementById("notifications").innerText;
};
</script>
{% endblock %}
{% block body %}
<h1>
2016-04-18 18:55:22 +00:00
Compute status
</h1>
2016-03-15 10:32:10 +00:00
The purpose of this page is to help for GNS3 debug. This can be dropped
in future GNS3 versions.
<h2>Opened projects</h2>
<table border="1">
<tr>
<th>Name</th>
<th>ID</td>
<th>Nodes</th>
<th>Clients connected</th>
</tr>
{% for project in project_manager.projects %}
<tr>
<td>{{project.name}}</td>
<td>{{project.id}}</td>
<td>{{project.nodes|length}}</td>
<td>{{project.listeners|length}}</td>
</tr>
{% endfor %}
</table>
<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>
2016-03-17 14:15:30 +00:00
<h2>Notifications</h2>
<div id="notifications">
</div>
{% endblock %}
2016-03-17 14:15:30 +00:00