mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
Fix documentation
This commit is contained in:
8 files changed
+17
-19
No files matched your search
@@ -35,7 +35,7 @@ class IndexHandler:
|
||||
@classmethod
|
||||
@Route.get(
|
||||
r"/compute",
|
||||
description="Ressources used by GNS3 Hypervisor"
|
||||
description="Ressources used by GNS3 Compute"
|
||||
)
|
||||
def compute(request, response):
|
||||
response.template("compute.html",
|
||||
|
||||
@@ -70,7 +70,7 @@ VM_OBJECT_SCHEMA = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"compute_id": {
|
||||
"description": "Hypervisor identifier",
|
||||
"description": "Compute identifier",
|
||||
"type": "string"
|
||||
},
|
||||
"project_id": {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% block head %}
|
||||
<script>
|
||||
var socket = new WebSocket("ws://" + location.host + "/v2/hypervisor/notifications/ws");
|
||||
var socket = new WebSocket("ws://" + location.host + "/v2/compute/notifications/ws");
|
||||
socket.onopen = function (event) {
|
||||
document.getElementById("notifications").innerText = "Connected";
|
||||
};
|
||||
@@ -16,7 +16,7 @@ socket.onmessage = function (event) {
|
||||
|
||||
{% block body %}
|
||||
<h1>
|
||||
Hypervisor status
|
||||
Compute status
|
||||
</h1>
|
||||
The purpose of this page is to help for GNS3 debug. This can be dropped
|
||||
in futur GNS3 versions.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
|
||||
<a href="/controller">Controller status</a>
|
||||
|
|
||||
<a href="/hypervisor">Hypervisor status</a>
|
||||
<a href="/compute">Compute status</a>
|
||||
</div>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
|
||||
@@ -44,7 +44,7 @@ class Documentation(object):
|
||||
"""
|
||||
Build all the doc page for handlers
|
||||
|
||||
:param doc_type: Type of doc to generate (controller, hypervisor)
|
||||
:param doc_type: Type of doc to generate (controller, compute)
|
||||
"""
|
||||
for handler_name in sorted(self._documentation):
|
||||
if "controller." in handler_name:
|
||||
|
||||
Reference in new issue
Block a user