2015-12-18 13:38:26 +00:00
|
|
|
{% extends "layout.html" %}
|
2016-03-17 14:15:30 +00:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<script>
|
2016-04-18 18:55:22 +00:00
|
|
|
var socket = new WebSocket("ws://" + location.host + "/v2/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 %}
|
|
|
|
|
2015-12-18 13:38:26 +00:00
|
|
|
{% block body %}
|
|
|
|
<h1>
|
2016-04-18 18:55:22 +00:00
|
|
|
Compute status
|
2015-12-18 13:38:26 +00:00
|
|
|
</h1>
|
2016-03-15 10:32:10 +00:00
|
|
|
The purpose of this page is to help for GNS3 debug. This can be dropped
|
2016-05-11 17:35:36 +00:00
|
|
|
in future GNS3 versions.
|
2015-12-18 13:38:26 +00:00
|
|
|
|
|
|
|
<h2>Opened projects</h2>
|
2015-12-22 14:19:38 +00:00
|
|
|
<table border="1">
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>ID</td>
|
2016-05-11 17:35:36 +00:00
|
|
|
<th>Nodes</th>
|
2015-12-22 14:19:38 +00:00
|
|
|
<th>Clients connected</th>
|
|
|
|
</tr>
|
2015-12-18 13:38:26 +00:00
|
|
|
{% for project in project_manager.projects %}
|
2015-12-22 14:19:38 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{project.name}}</td>
|
|
|
|
<td>{{project.id}}</td>
|
2016-05-11 17:35:36 +00:00
|
|
|
<td>{{project.nodes|length}}</td>
|
2015-12-22 14:19:38 +00:00
|
|
|
<td>{{project.listeners|length}}</td>
|
|
|
|
</tr>
|
2015-12-18 13:38:26 +00:00
|
|
|
{% endfor %}
|
2015-12-22 14:19:38 +00:00
|
|
|
</table>
|
|
|
|
|
2015-12-18 13:38:26 +00:00
|
|
|
|
|
|
|
<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>
|
2015-12-18 13:38:26 +00:00
|
|
|
{% endblock %}
|
2016-03-17 14:15:30 +00:00
|
|
|
|