1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00
Commit Graph

4442 Commits

Author SHA1 Message Date
grossmj
f050fc7e00
Change runtime checks for Python version 2024-02-09 16:49:58 +11:00
John Fleming
763ef24108 Address the telnet console bug. Add wait_for for drain() call. If we're stuck on drain then the buffer isn't getting emptied. 5 seconds after drain() blocks, exception will be thrown and client will be removed from connection table and will no longer be a problem. 2024-02-02 22:09:31 -05:00
grossmj
0037f31553
Merge branch '2.2' into 3.0
# Conflicts:
#	CHANGELOG
#	docs/api/notifications/link.updated.json
#	docs/api/notifications/log.warning.json
#	docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodes.rst
#	docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeid.rst
#	docs/api/v2/compute/iou/projectsprojectidiounodes.rst
#	docs/api/v2/compute/project/projects.rst
#	docs/api/v2/compute/qemu/projectsprojectidqemunodes.rst
#	docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeid.rst
#	docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidstart.rst
#	docs/api/v2/controller/link/projectsprojectidlinks.rst
#	docs/api/v2/controller/link/projectsprojectidlinkslinkid.rst
#	docs/api/v2/controller/link/projectsprojectidlinkslinkidstartcapture.rst
#	docs/api/v2/controller/project/projects.rst
#	docs/api/v2/controller/project/projectsprojectidduplicate.rst
#	docs/controller_notifications.rst
#	docs/curl.rst
#	docs/gns3_file.json
#	docs/project_notifications.rst
#	gns3server/compute/qemu/qemu_vm.py
#	gns3server/controller/project.py
#	gns3server/crash_report.py
#	gns3server/schemas/ethernet_hub.py
#	gns3server/schemas/ethernet_switch.py
#	gns3server/static/web-ui/3rdpartylicenses.txt
#	gns3server/static/web-ui/index.html
#	gns3server/utils/asyncio/telnet_server.py
#	gns3server/version.py
#	gns3server/web/web_server.py
#	requirements.txt
#	tests/controller/test_project.py
#	tests/controller/test_topology.py
#	tests/handlers/api/controller/test_project.py
2024-01-28 12:30:43 +11:00
John Fleming
6c5f54fe57
Update telnet_server.py
Maybe use the correct object name this time for the socket objects.
2024-01-28 12:14:07 +11:00
John Fleming
082fbee1bd
Update telnet_server.py
Set tcp keepalive timers to 60 seconds. Seems to default to 2 hours on ubuntu 22. Most firewalls will age out an idle tcp session at 1 hour.

Will not address telnet console failing after a tcp session has failed (TimeoutError).
2024-01-28 12:14:07 +11:00
grossmj
907b305ecf
Development on 2.2.46.dev1 2024-01-28 12:13:12 +11:00
grossmj
57f92db124
Release v2.2.45 2024-01-28 12:13:12 +11:00
grossmj
0f6f943a83
Bundle web-ui v2.2.45 2024-01-28 12:13:12 +11:00
grossmj
2cb76b2274
Remove old web-ui files 2024-01-28 12:13:11 +11:00
grossmj
2d2db52a8b
Bundle web-ui v2.2.45 2024-01-28 12:13:11 +11:00
grossmj
a8d0818e07
Sync appliances 2024-01-28 12:13:11 +11:00
grossmj
f7eb2492d9
Fix mouse offset issues with VNC in Qemu. Fixes #2335 2024-01-28 12:13:11 +11:00
grossmj
e3493870b2
Add project.created, project.opened and project.deleted controller notification stream.
Move project.updated and project.closed from project notification to controller notification stream.
2024-01-28 12:13:09 +11:00
grossmj
d466c85385
Do not stop searching for Qemu binaries if one binary cannot be executed. Ref #2306 2024-01-28 12:13:09 +11:00
grossmj
35d4391fc0
Fix Ethernet switch and Ethernet hub port validations. Fixes #2334 2024-01-28 12:13:09 +11:00
grossmj
eea0ab69bd
Bundle dev version of the web-ui 2024-01-28 12:13:09 +11:00
grossmj
22ade94118
Update CORS policy 2024-01-28 12:13:08 +11:00
grossmj
08ee40548f
Add custom executable paths on Windows 2024-01-28 12:13:08 +11:00
grossmj
9fd2f58ef7
Development in 2.2.45.dev3 2024-01-28 12:13:08 +11:00
grossmj
b9b802ebab
Release v2.2.44.1 2024-01-28 12:13:08 +11:00
grossmj
1d86e322e9
Do not compute checksums on macOS 2024-01-28 12:13:07 +11:00
grossmj
8eb5f10971
Add multiprocessing.set_start_method() 2024-01-28 12:13:07 +11:00
grossmj
cc4783ab98
Bump version to v2.2.45.dev2 2024-01-28 12:13:07 +11:00
grossmj
19792f328d
Have freeze support for macOS as well 2024-01-28 12:13:07 +11:00
grossmj
596d1274a3
Catch exceptions when computing image checksums. Ref https://github.com/GNS3/gns3-server/issues/2228 2024-01-28 12:13:07 +11:00
grossmj
2f765747b8
Add freeze_support() for multiprocessing 2024-01-28 12:13:06 +11:00
grossmj
4fe57b6a15
Development on 2.2.45.dev1 2024-01-28 12:13:06 +11:00
grossmj
1177626a53
Release v2.2.44 2024-01-28 12:13:06 +11:00
grossmj
c4cc346864
Sync appliances 2024-01-28 12:13:06 +11:00
grossmj
8915dfffa5
Bundle web-ui v2.2.44 2024-01-28 12:13:05 +11:00
grossmj
27d5ac537f
Non-blocking checksums computation when server starts. Fixes #2228 2024-01-28 12:13:05 +11:00
grossmj
fe246cd413
Fix timeout issue when creating Qemu disk image. Fixes https://github.com/GNS3/gns3-server/issues/2313 2024-01-28 12:13:05 +11:00
grossmj
2bbb560b8e
Support for web socket console over HTTPS 2024-01-28 12:13:04 +11:00
grossmj
2a3bb81076
Bundle web-ui 2024-01-28 12:13:04 +11:00
John Fleming
54abf85523
Update telnet_server.py
Maybe use the correct object name this time for the socket objects.
2024-01-25 01:41:57 -05:00
John Fleming
ac86717bc0
Update telnet_server.py
Set tcp keepalive timers to 60 seconds. Seems to default to 2 hours on ubuntu 22. Most firewalls will age out an idle tcp session at 1 hour.

Will not address telnet console failing after a tcp session has failed (TimeoutError).
2024-01-23 13:15:17 -05:00
grossmj
fbd8f6ce28
Release v2.2.45 2024-01-12 21:38:26 +11:00
grossmj
195da24910
Bundle web-ui v2.2.45 2024-01-12 21:34:11 +11:00
grossmj
b4c7609aeb
Remove old web-ui files 2024-01-12 21:29:04 +11:00
grossmj
cd9c4c84b6
Bundle web-ui v2.2.45 2024-01-12 21:21:18 +11:00
grossmj
2566de0f5a
Sync appliances 2024-01-12 21:13:52 +11:00
grossmj
6a069d0af6
Fix mouse offset issues with VNC in Qemu. Fixes #2335 2024-01-12 16:18:32 +11:00
grossmj
4c149e1614
Add project.created, project.opened and project.deleted controller notification stream.
Move project.updated and project.closed from project notification to controller notification stream.
2024-01-12 13:16:55 +11:00
grossmj
473fa98eda
Do not stop searching for Qemu binaries if one binary cannot be executed. Ref #2306 2024-01-11 23:11:56 +11:00
grossmj
13d9afd8bc
Fix Ethernet switch and Ethernet hub port validations. Fixes #2334 2024-01-11 22:40:38 +11:00
grossmj
b4edbbbaa7 Bundle dev version of the web-ui 2023-12-07 12:34:52 +10:00
grossmj
02e19800fb Update CORS policy 2023-12-06 22:33:55 +10:00
grossmj
bc1016474e Merge branch '2.2' into 3.0
# Conflicts:
#	gns3server/compute/base_node.py
2023-12-05 22:15:50 +10:00
grossmj
24bb0ca419 Add custom executable paths on Windows 2023-12-05 21:24:40 +10:00
grossmj
42f668ffc4 Development on 3.0.0.dev12 2023-11-27 11:33:22 +10:00
grossmj
646f0fd837 Release v3.0.0b1 2023-11-27 11:13:39 +10:00
grossmj
3d383b25f0 Bundle web-ui v3.0.0b1 2023-11-27 11:10:37 +10:00
grossmj
37f720ac73 Fix bug when listing endpoints for opened project 2023-11-23 15:38:42 +10:00
grossmj
9509d3a713 Make images executable after importing a project 2023-11-23 11:30:46 +10:00
grossmj
061ee1491d Disable IOS hostname check for Dynamips ghost instances 2023-11-22 18:47:05 +10:00
grossmj
24d958d9ec Release v3.0.0a6 2023-11-15 12:07:48 +10:00
grossmj
48dab4af61 Bundle web-ui v3.0.0a6 2023-11-15 12:03:04 +10:00
grossmj
67be4259ff Fix tests 2023-11-15 11:57:14 +10:00
grossmj
4e9bc190a4 Upgrade to aiohttp v3.9.0rc0 2023-11-15 11:47:48 +10:00
grossmj
09ff807055 Install Docker resources in writable location 2023-11-13 11:23:26 +10:00
grossmj
e367b3a148 Default compute username is "gns3" 2023-11-12 18:02:19 +10:00
grossmj
7afdcbb3d3 Development in 2.2.45.dev3 2023-11-07 19:11:57 +10:00
grossmj
c88f76b740 Release v2.2.44.1 2023-11-07 14:59:28 +10:00
grossmj
b81cc14cef Do not compute checksums on macOS 2023-11-07 14:30:39 +10:00
grossmj
aa133c3b8a Add multiprocessing.set_start_method() 2023-11-07 13:33:43 +10:00
grossmj
7449064ea2 Bump version to v2.2.45.dev2 2023-11-07 12:21:39 +10:00
grossmj
db315e3c3c Have freeze support for macOS as well 2023-11-07 11:17:48 +10:00
grossmj
c437482e85 Catch exceptions when computing image checksums. Ref https://github.com/GNS3/gns3-server/issues/2228 2023-11-07 11:08:47 +10:00
grossmj
aac6fbfc31 Add freeze_support() for multiprocessing 2023-11-07 10:42:53 +10:00
grossmj
8a208dbf04 Merge branch '2.2' into 3.0
# Conflicts:
#	CHANGELOG
#	gns3server/compute/qemu/__init__.py
#	gns3server/crash_report.py
#	gns3server/static/web-ui/index.html
#	gns3server/static/web-ui/main.383fdade2fd9dbccffbc.js
#	gns3server/version.py
#	gns3server/web/web_server.py
#	requirements.txt
2023-11-06 17:09:34 +10:00
grossmj
3c4b5db1ca Development on 2.2.45.dev1 2023-11-06 17:00:17 +10:00
grossmj
5c8abdc6fd Release v2.2.44 2023-11-06 16:02:23 +10:00
grossmj
f80f41b5b3 Sync appliances 2023-11-06 15:58:21 +10:00
grossmj
503373a6e9 Bundle web-ui v2.2.44 2023-11-06 15:53:51 +10:00
grossmj
ae825b0080 Non-blocking checksums computation when server starts. Fixes #2228 2023-11-06 12:32:23 +10:00
grossmj
191feed669 Fix timeout issue when creating Qemu disk image. Fixes https://github.com/GNS3/gns3-server/issues/2313 2023-11-05 15:41:46 +10:00
grossmj
e1bd4638c8 Fix sample config: VMware section declared twice. Fixes #2311 2023-11-03 20:46:36 +10:00
grossmj
61dede72f9 Fix ws console and packet capture over SSL 2023-11-03 15:35:49 +10:00
grossmj
13630179b2 Merge branch '2.2' into 3.0
# Conflicts:
#	appveyor.yml
#	gns3server/compute/project_manager.py
#	gns3server/handlers/api/controller/node_handler.py
#	gns3server/static/web-ui/index.html
#	gns3server/static/web-ui/main.febf2f1259a67875a3e3.js
2023-11-03 14:56:55 +10:00
grossmj
3b22bcfe96 Support for web socket console over HTTPS 2023-11-03 14:40:40 +10:00
grossmj
8676a3dccf Bundle web-ui 2023-11-02 17:40:47 +10:00
grossmj
7c49a9160c Allow disabling hardware virtualization check 2023-10-30 14:57:11 +10:00
grossmj
23b1c7a989 Development on 3.0.0.dev10 2023-10-27 14:12:23 +10:00
grossmj
399e925f2e Release v3.0.0a5 2023-10-27 13:38:14 +10:00
grossmj
ac11c984cb Bundle web-ui v3.0.0a5 2023-10-27 13:32:31 +10:00
grossmj
0e8e4fd2f7 Merge branch '2.2' into 3.0 2023-10-27 13:28:32 +10:00
grossmj
ed99a98fe1 Sync appliances 2023-10-27 13:20:15 +10:00
grossmj
3f50319990 Fix L2IOU "failed code signing checks" when IOU base file name is >= 63 characters 2023-10-26 15:05:10 +10:00
grossmj
5475eedce7 Add igb Qemu adapter 2023-10-24 18:33:26 +10:00
grossmj
d680bbbc77 Merge branch '2.2' into 3.0
# Conflicts:
#	gns3server/schemas/qemu_template.py
#	requirements.txt
#	tests/compute/qemu/test_qemu_vm.py
#	tests/handlers/api/compute/test_qemu.py
2023-10-24 18:31:51 +10:00
Jeremy Grossmann
240708112c
Merge branch '2.2' into feature/add-qemu-igb-nic 2023-10-24 17:14:27 +10:00
grossmj
0d15f40930 Change "ip cef" to "no ip cef" in IOU default configs. Fixes #2298 2023-10-23 15:16:49 +10:00
Jeremy Grossmann
9c369a2597
Merge branch '3.0' into fix/1468 2023-10-22 15:44:25 +10:00
grossmj
0f0412158d Drop support for Python 3.7 and upgrade dependencies 2023-10-22 15:37:00 +10:00
grossmj
44c066ac68 Fix compute authentication for websocket endpoints 2023-10-22 12:44:39 +10:00
grossmj
ffc49ea954 Development on 3.0.0.dev9 2023-10-18 20:15:11 +10:00
grossmj
d610c933fb Release v3.0.0a4 2023-10-18 19:01:13 +10:00
grossmj
edcc69f617 Remove old web-ui files 2023-10-18 17:58:11 +10:00
grossmj
fe8b61373c Bundle web-ui v3.0.0a4 2023-10-18 17:51:41 +10:00
grossmj
87960f1ff0 Merge branch '2.2' into 3.0
# Conflicts:
#	README.md
2023-10-18 17:48:09 +10:00
grossmj
3b0d89be5a Merge branch 'master' into 2.2 2023-10-18 17:46:51 +10:00
grossmj
5ff3043fb4 Sync appliances 2023-10-18 17:45:17 +10:00
grossmj
47d3f3f349 Do not enforce Compute.Audit and Template.Audit privileges due to current web-ui limitations 2023-10-18 15:51:43 +10:00
grossmj
6ca15cbcff Merge branch '2.2' into 3.0
# Conflicts:
#	.github/workflows/testing.yml
#	requirements.txt
#	setup.py
2023-10-18 14:49:49 +10:00
grossmj
722512d851 Remove model validator. Fixes https://github.com/GNS3/gns3-gui/issues/3522
Default port name and port segment size are already set in the code when a new node is created.
2023-10-15 11:16:05 +10:00
Konrad Goławski
737664a3d4 Add Qemu IGB network device 2023-10-12 11:35:53 +02:00
grossmj
5092bd2fdf List elements when a project is closed 2023-10-09 13:16:12 +10:00
grossmj
a27db6b4eb Fix deleting resource from resource pool. Ref #2293 2023-09-28 18:38:38 +10:00
grossmj
66b66cc3e1 Bump version to 3.0.0.dev8 2023-09-25 21:38:20 +10:00
grossmj
674381f1be Fix tests 2023-09-25 21:08:23 +10:00
grossmj
1ae6d13022 Support to create empty disk images on the controller 2023-09-25 17:51:14 +10:00
grossmj
999a47f747 Fix issue with importlib.resources.files() and Python 3.9 2023-09-23 20:44:00 +10:00
grossmj
d9214a3c67 Merge branch '2.2' into 3.0
# Conflicts:
#	gns3server/compute/virtualbox/__init__.py
#	gns3server/controller/gns3vm/virtualbox_gns3_vm.py
#	gns3server/crash_report.py
#	gns3server/version.py
#	requirements.txt
2023-09-23 15:54:54 +10:00
Jeremy Grossmann
ffb58a4ed2
Merge branch 'master' into Inappropriate_Logic-5node.py11635999804432162276.diff 2023-09-20 14:17:58 +07:00
munahaf
4d7b3fb9d6 Comment: Updated a test expression to remove a logical short circuit. 2023-09-20 06:51:41 +00:00
grossmj
94abdfc9f0 Development on 2.2.44.dev1 2023-09-19 21:08:24 +07:00
grossmj
89ec458f5c Release v2.2.43 2023-09-19 20:16:52 +07:00
grossmj
80bc1a726b Sync appliances 2023-09-19 20:12:32 +07:00
grossmj
a96a82821c Merge branch 'master' into 2.2 2023-09-19 20:04:15 +07:00
grossmj
ad47ffbe29 Force English output for VBoxManage. Fixes #2266 2023-09-19 18:14:05 +07:00
Sylvain MATHIEU OBS
0d834ee2a0 rbac fix: cannot add multiple time same privilege to a role 2023-09-18 13:34:46 +02:00
grossmj
7534718a1c Remove privileges endpoint from roles 2023-09-14 22:41:08 +07:00
Jeremy Grossmann
63c1defd9a
Merge branch '3.0' into resource-pools 2023-09-14 22:38:52 +07:00
grossmj
1f90bb14b6 Require users to be logged in for privilege API endpoints 2023-09-14 22:36:21 +07:00
Sylvain MATHIEU OBS
10eeefc1f5 API: add endpoint to expose availables privileges to web UI 2023-09-12 15:24:54 +02:00
grossmj
702fea89fb Automatically add vboxnet and DHCP server if not present for VirtualBox GNS3 VM. Ref #2266 2023-09-12 16:14:44 +07:00
grossmj
a95dda0d1d Complete resource pool support for projects 2023-09-11 18:15:03 +07:00
grossmj
d53ef175f8 DB and API for resource pools 2023-09-07 17:31:11 +07:00
grossmj
c11b3c3911 Fix tests after merge 2023-09-06 23:42:50 +07:00
grossmj
1ec056c1a6 Merge branch '2.2' into 3.0
# Conflicts:
#	gns3server/compute/docker/docker_vm.py
#	gns3server/controller/__init__.py
#	gns3server/controller/appliance_manager.py
#	gns3server/web/route.py
#	requirements.txt
#	tests/compute/docker/test_docker_vm.py
2023-09-06 23:30:00 +07:00
Jeremy Grossmann
285b19d97f
Merge pull request #2272 from GNS3/fix/2271
Correctly install built-in appliances
2023-09-06 23:16:34 +07:00
grossmj
709aa46074 Fix issue with controller config saved before checking current version with previous one 2023-09-06 16:48:24 +07:00
grossmj
0c12849d0d Use controller vars file to store version and appliance etag 2023-09-06 16:28:46 +07:00
grossmj
8aa9d1aae6 Upgrade dependencies and fix user group tests 2023-09-03 17:58:51 +07:00
grossmj
66047b3431 Fix OAuth2PasswordBearer token URL 2023-09-03 17:31:05 +07:00
grossmj
6ec97a704f Put user, groups, roles and ACL under /access 2023-09-02 19:10:02 +07:00
grossmj
a358369606 Move notifications under controller router 2023-09-02 18:57:53 +07:00
grossmj
e72b07bf5c Prepare resource pools table for future development 2023-09-02 18:42:40 +07:00
grossmj
170f476733 Add more built-in roles 2023-09-02 18:15:00 +07:00
grossmj
0077fd98aa Add required privileges to all endpoints 2023-09-02 17:54:24 +07:00
grossmj
f3a4ad49f4 Check for group ACEs to find user privileges 2023-08-28 18:14:34 +10:00
grossmj
3e0592520b Handle ACE propagate and allowed 2023-08-28 12:06:01 +10:00
grossmj
d6e1ee5dbb Prevent X11 socket file to be modified by Docker container 2023-08-27 18:30:37 +10:00
grossmj
57197c3d1c Comment unused code 2023-08-27 18:23:10 +10:00
grossmj
60ce1172e0 Use an ACL table to check for privileges 2023-08-27 18:20:42 +10:00
grossmj
6bd855b3c5 New database schema for better RBAC 2023-08-21 21:32:23 +10:00
grossmj
e9e2dc2ca7 Fix validation issues and improve exceptions logs 2023-08-17 17:36:50 +10:00
Echo Nar
a6b0f32b57
Hash Update openwrt.gns3a
Update hashes for openwrt-18.06.5 and openwrt-18.06.2 based hashes from download links.
2023-08-16 18:37:55 -05:00
grossmj
a69feb3682 Use an older version of platformdirs 2023-08-12 19:15:29 +10:00
grossmj
090d1c8c84 Only use platformdirs with Python >= '3.7' 2023-08-12 19:04:14 +10:00