2016-03-15 10:32:10 +00:00
|
|
|
{% extends "layout.html" %}
|
2016-03-17 16:32:37 +00:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
<script>
|
|
|
|
var socket = new WebSocket("ws://" + location.host + "/v2/projects/{{project.id}}/notifications/ws");
|
|
|
|
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 %}
|
|
|
|
|
|
|
|
|
2016-03-15 10:32:10 +00:00
|
|
|
{% block body %}
|
|
|
|
<h1>
|
|
|
|
{{project.name}}
|
|
|
|
</h1>
|
|
|
|
The purpose of this page is to help for GNS3 debug. This can be dropped
|
|
|
|
in futur GNS3 versions.
|
|
|
|
|
2016-05-11 17:35:36 +00:00
|
|
|
<h2>Nodes</h2>
|
2016-03-15 10:32:10 +00:00
|
|
|
<table border="1">
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2016-06-21 10:19:12 +00:00
|
|
|
<th>ID</th>
|
2016-08-16 13:45:06 +00:00
|
|
|
<th>Status</th>
|
2016-04-21 14:18:15 +00:00
|
|
|
<th>Compute</th>
|
2016-03-15 10:32:10 +00:00
|
|
|
<th>Console</th>
|
|
|
|
</tr>
|
2016-05-11 17:35:36 +00:00
|
|
|
{% for node in project.nodes.values() %}
|
2016-03-15 10:32:10 +00:00
|
|
|
<tr>
|
2016-05-11 17:35:36 +00:00
|
|
|
<td>{{node.name}}</td>
|
|
|
|
<td>{{node.id}}</td>
|
2016-08-16 13:45:06 +00:00
|
|
|
<td>{{node.status}}</td>
|
2016-05-11 17:35:36 +00:00
|
|
|
<td>{{node.compute.id}}</td>
|
|
|
|
<td><a href="{{node.console_type}}://{{node.host}}:{{node.console}}">Console</a>
|
2016-03-15 10:32:10 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h2>Links</h2>
|
|
|
|
<table border="1">
|
|
|
|
<tr>
|
2016-06-21 10:19:12 +00:00
|
|
|
<th>ID</th>
|
2016-11-10 13:18:24 +00:00
|
|
|
<th>Data</th>
|
2016-06-21 10:19:12 +00:00
|
|
|
<th>Capture</th>
|
|
|
|
<th>PCAP</th>
|
2016-03-15 10:32:10 +00:00
|
|
|
</tr>
|
|
|
|
{% for link in project.links.values() %}
|
|
|
|
<tr>
|
2016-04-21 14:11:42 +00:00
|
|
|
<td>{{link.id}}</td>
|
2016-11-10 13:18:24 +00:00
|
|
|
<td>
|
|
|
|
{% if link.debug_link_data|length == 2 %}
|
|
|
|
{{link.debug_link_data[0]}}<br>
|
|
|
|
{{link.debug_link_data[1]}}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-04-21 14:11:42 +00:00
|
|
|
<td>{{link.capturing}}</td>
|
2016-04-22 14:22:03 +00:00
|
|
|
<td><a href="/v2/projects/{{project.id}}/links/{{link.id}}/pcap">Download</a></td>
|
2016-03-15 10:32:10 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2016-06-21 10:19:12 +00:00
|
|
|
|
2016-06-23 09:17:23 +00:00
|
|
|
<h2>Drawings</h2>
|
2016-06-21 10:19:12 +00:00
|
|
|
<table border="1">
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Position</th>
|
|
|
|
<th>Content</th>
|
|
|
|
</tr>
|
2016-06-23 09:17:23 +00:00
|
|
|
{% for drawing in project.drawings.values() %}
|
2016-06-21 10:19:12 +00:00
|
|
|
<tr>
|
2016-06-23 09:17:23 +00:00
|
|
|
<td>{{drawing.id}}</td>
|
|
|
|
<td>{{drawing.x}}, {{drawing.y}}, {{drawing.z}}</td>
|
|
|
|
<td>{{drawing.svg}}</td>
|
2016-06-21 10:19:12 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-17 16:32:37 +00:00
|
|
|
<h2>Notifications</h2>
|
|
|
|
<div id="notifications">
|
|
|
|
</div>
|
2016-03-15 10:32:10 +00:00
|
|
|
{%endblock%}
|
|
|
|
|