gns3-server/docs/general.rst

101 lines
2.7 KiB
ReStructuredText
Raw Normal View History

2016-06-21 08:47:22 +00:00
General
2018-01-31 16:37:02 +00:00
#######
2016-06-21 08:47:22 +00:00
2016-06-23 08:09:21 +00:00
Architecture
============
2018-01-31 16:37:02 +00:00
GNS3 can be divided in four part:
2016-06-23 08:09:21 +00:00
2018-01-31 16:37:02 +00:00
* the user interface or GUI (gns3-gui or gns3-web projects)
* the controller (gns3-server project)
* the compute (part of the gns3-server project)
* the emulators (Qemu, Dynamips, VirtualBox...)
2016-06-23 08:09:21 +00:00
2018-01-31 16:37:02 +00:00
The controller pilots everything, it manages the state
of each project. Only one controller should run.
2016-06-23 08:09:21 +00:00
2018-01-31 16:37:02 +00:00
The GUI displays a topology representing a project on a canvas and allow to
perform actions on given project, sending API requests to the controller.
2016-06-23 08:09:21 +00:00
2018-01-31 16:37:02 +00:00
The compute controls emulators to run nodes. A compute that is on
the same server as the controller is the same process.
2016-06-23 08:09:21 +00:00
2018-01-31 16:37:02 +00:00
The compute usually starts an emulator instance for each node.
2016-06-23 08:09:21 +00:00
A small schema::
+---------------+ +----------+ +------+
| | | COMPUTE +-----> QEMU |
| GNS3 GUI | +---> SERVER 1 | +------+
| QT interface +-----+ | +----------+
| | | | +---+
+---------------+ +v--------++ +--->IOU|
|CONTROLLER| | +---+
+---------+ +^--------++ +---------+ |
| GNS3 WEB+-----+ | | COMPUTE +--+
+---------+ +---> SERVER 2+--+ +--------+
+---------+ +--->DYNAMIPS|
+--------+
2018-01-31 16:37:02 +00:00
Use the controller API to work with the GNS3 backend
2016-06-23 08:09:21 +00:00
2015-02-18 10:06:13 +00:00
Communications
2018-01-31 16:37:02 +00:00
==============
2015-02-18 10:06:13 +00:00
2018-01-31 16:37:02 +00:00
All communication are done over HTTP using the JSON format.
2015-02-18 10:06:13 +00:00
2015-01-14 00:05:26 +00:00
Errors
======
2018-01-31 16:37:02 +00:00
A standard HTTP error is sent in case of an error:
2015-01-14 00:05:26 +00:00
.. code-block:: json
{
"status": 409,
"message": "Conflict"
}
2016-06-08 16:12:22 +00:00
Limitations
============
Concurrency
------------
2018-01-31 16:37:02 +00:00
A node cannot processes multiple requests at the same time. However,
multiple requests on multiple nodes can be executed concurrently.
This should be transparent for clients since internal locks are used inside the server,
so it is safe to send multiple requests at the same time and let the server
manage the concurrency.
2016-03-25 16:35:55 +00:00
Authentication
2018-01-31 16:37:02 +00:00
--------------
2015-02-25 09:29:20 +00:00
2018-01-31 16:37:02 +00:00
HTTP basic authentication can be used to prevent unauthorized API requests.
It is recommended to set up a VPN if the communication between clients and the server must be encrypted.
2015-02-25 09:29:20 +00:00
Notifications
=============
2016-06-30 08:55:47 +00:00
2018-01-31 16:37:02 +00:00
Notifications can be received from the server by listening to a HTTP stream or via a Websocket.
2018-01-31 16:37:02 +00:00
Read :doc:`notifications` for more information
2016-03-07 16:57:12 +00:00
Previous versions
=================
API version 1
-------------
2018-01-31 16:37:02 +00:00
2016-06-16 07:11:50 +00:00
Shipped with GNS3 1.3, 1.4 and 1.5.
2018-01-31 16:37:02 +00:00
This API doesn't support the controller architecture.
2016-03-07 16:57:12 +00:00