Commit Graph

312 Commits

Author SHA1 Message Date
3df348ac2a Server statistics implementation 2020-03-10 17:48:03 +10:30
c5412bf970 Allocate application IDs for IOU nodes on the controller.
An application ID is used by IOU to generate its interface Mac addresses. They must be unique across all opened projects sharing the same computes to avoid Mac address collisions.
2020-02-10 15:20:49 +08:00
114da9764b Fix tests. 2020-01-08 08:59:55 +08:00
0a87ee573c Accept a node name when creating a node from a template using the API. Fixes #1708 2020-01-08 08:19:33 +08:00
992c60e3e0 Return HTTP status code 204 in API when project successfully closed. Fixes #1689 2019-11-11 15:32:57 +08:00
c41c01b95f Fix tests. 2019-05-18 19:19:27 +07:00
bae3fb84b9 Download custom appliance symbols from GitHub
Fix symbol cache issue. Ref https://github.com/GNS3/gns3-gui/issues/2671
Fix temporary directory for symbols was not deleted
Fix temporary appliance file was not deleted
2019-03-11 16:55:16 +07:00
826f6b2d57 Fix include images test. 2019-03-07 17:17:07 +07:00
8cc8269842 Use aiozipstream for snapshots.
Fix tests.
2019-02-28 17:25:05 +07:00
4487e578bc Fix create a node from a template test. 2019-02-22 18:44:12 +07:00
8360ae98b1 Move appliance and template management code in their own classes. 2019-01-14 16:09:06 +07:00
d7c2e16c21 Use "template" to name what we use to create new nodes. 2018-11-28 16:12:58 +07:00
17d070dca7 Early support for symbol themes. 2018-11-23 17:27:10 +07:00
4e2b8bfe7c Add more information about appliances to the API documentation. 2018-11-20 16:21:33 +07:00
3727487730 Fix test on Windows. 2018-11-19 16:09:39 +07:00
3497deaa31 Allow virtual machines to use files in project directory as disk images. 2018-11-19 15:53:43 +07:00
bd657c0167 Support to duplicate an appliance. 2018-11-18 17:05:16 +07:00
a33b8eac3a Support "L1 keepalives" in IOU appliance schema. 2018-11-18 16:04:08 +07:00
74e1463015 Fix bug with custom adapters and categories for Docker VM. Fixes https://github.com/GNS3/gns3-gui/issues/2613 2018-11-17 21:50:00 +07:00
aa4593c993 Handle custom adapters in schemas. 2018-11-17 20:09:34 +07:00
499ab9844a Reorganize how appliance creation is validated against JSON schemas.
This allows for clearer error messages when validation fails.
2018-11-17 18:12:46 +07:00
71fcf855b4 Add tests for all appliance types. 2018-11-17 15:37:20 +07:00
1184f29b90 Add appliance API tests. Ref #1427. 2018-11-15 21:34:36 +07:00
98f04365b7 Remove generic controller settings API endpoint. 2018-11-14 16:24:30 +08:00
2764828f38 Refactor how clients access PCAP capture files. Fixes https://github.com/GNS3/gns3-gui/issues/2438.
* The PCAP file is directly accessed if controller and client are on the same host.
* The PCAP file is streamed from the compute server to the client with the controller as a proxy when the controller is remote for the client.
2018-10-27 14:47:17 +07:00
ab8dc52ece Fix tests to work with new version of aiohttp (>= 3.0) 2018-10-17 17:32:10 +07:00
76af98404a Drop Python 3.4 and switch to async / await syntax for asyncio. Fixes #1425 2018-10-15 17:05:49 +07:00
33e8710495 Merge branch '2.1' into 2.2
# Conflicts:
#	gns3server/compute/docker/docker_vm.py
#	gns3server/controller/compute.py
#	gns3server/controller/gns3vm/__init__.py
#	gns3server/controller/link.py
#	gns3server/controller/project.py
#	gns3server/handlers/api/controller/project_handler.py
#	gns3server/handlers/api/controller/server_handler.py
#	gns3server/utils/asyncio/__init__.py
#	gns3server/utils/asyncio/telnet_server.py
#	gns3server/version.py
#	gns3server/web/web_server.py
#	tests/compute/qemu/test_qemu_vm.py
2018-08-29 15:57:54 +07:00
a3d1e865a8 Replace asyncio.async() by asyncio.ensure_future() in tests. Ref #2566. 2018-08-24 18:52:15 +07:00
089d25c79d Forbid controller and compute servers to be different versions.
Report last compute server error to clients and display in the server summary.
2018-08-22 16:54:43 +07:00
651d8280a7 Fix appliance template tests. 2018-08-19 19:35:45 +07:00
7f72b90b0e The server has now 2 notification streams
* A new one for controller related events (compute, appliance templates etc.)
* The existing one for project related events (links, nodes etc.)
2018-08-16 21:31:57 +07:00
033f005bde Merge branch '2.1' into 2.2
# Conflicts:
#	gns3server/compute/docker/docker_vm.py
#	gns3server/version.py
2018-08-07 21:06:42 +07:00
0f496907a0 Fix API status code for start/stop/suspend/reload a node. Fixes #1353.
Fix issues with test.
Update documentation.
2018-06-14 16:39:32 +08:00
ac73c72727 Don't send variables to computes where are empty, Ref: #1340 2018-06-13 18:55:47 +02:00
d1ccf3bc84 Merge branch '2.1' into 2.2
# Conflicts:
#	gns3server/version.py
#	requirements.txt
2018-06-04 22:46:52 +07:00
7b3d5ae5e3 Create/update project on compute when variables changes 2018-05-09 15:29:35 +02:00
f2700ed445 Support of supplier and variables in topology 2018-05-08 10:07:42 +02:00
132c7c8f5b Fix tests 2018-05-07 12:55:32 +02:00
e267f8a8b8 Project global variables 2018-05-04 14:34:44 +02:00
43081152ef Add support of ExtraHosts for Docker, Ref. gns3-gui#2482 2018-04-25 16:03:01 +02:00
64949f5d04 Fix bug with 'none' console type for Ethernet switch.
Fix some tests related to traceng.
2018-03-30 13:00:52 +07:00
669d2ec038 Merge branch '2.1' into 2.2
# Conflicts:
#	gns3server/schemas/node.py
2018-03-30 12:14:09 +07:00
297bbd91ec Fix traceng tests. 2018-03-30 12:10:57 +07:00
d08c08617c Support for source and destination for traceNG. 2018-03-27 16:58:49 +07:00
397c1322b4 Base support for TraceNG. 2018-03-12 17:57:13 +07:00
d9a0ec9ff3 Replace asyncio.async with ensure_future because of deprecation, Fixes: #1269 2018-01-24 11:11:53 +01:00
2e40fb8608 Fix client/server version test. 2018-01-18 16:04:31 +08:00
8907b3d58a GNS3-API: implement GET for specific drawing and link
Fixes #1249
2018-01-05 13:44:46 +01:00
851fcf5c71 Fix compute auto idlepc test. 2017-11-23 23:28:52 +07:00