grossmj
0d3fad8c8f
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/controller/__init__.py
# gns3server/controller/export_project.py
# gns3server/controller/project.py
# gns3server/controller/snapshot.py
# gns3server/crash_report.py
# gns3server/schemas/snapshot.py
# gns3server/static/web-ui/26.34a83d9cee7db39cd0de.js
# gns3server/static/web-ui/index.html
# gns3server/static/web-ui/main.d74d38241f0602d1b3e0.js
# gns3server/version.py
# gns3server/web/route.py
# tests/handlers/api/controller/test_project.py
# tests/handlers/api/controller/test_snapshot.py
2026-04-11 19:22:05 +08:00
grossmj
2670c68467
Last adjustments for import/export
2026-04-10 18:58:21 +08:00
grossmj
6f7730c455
Update snapshots when duplicating a project
2026-04-09 23:18:55 +08:00
grossmj
fbea9b655d
Fix issue when restoring a snapshot of a duplicated project
2026-04-08 22:16:47 +08:00
grossmj
6869f2d71d
Snapshot refactoring
2026-04-08 20:02:01 +08:00
Jeremy Grossmann
8f325b4127
Merge branch '3.0' into feature/ai-copilot-bridge
2026-03-17 13:41:21 +08:00
grossmj
cb18b60c5d
Ignore HTTPException received when closing a project
2026-03-17 13:23:19 +08:00
UmmmAGoodName
95bd76a212
Fixed issue #1605 regarding Cisco slots causing configs to break
2026-03-16 19:09:32 +01:00
YueGuobin
7d031a6802
style: remove unused imports and variables in project.py
...
Remove unused import and exception variable flagged by ruff:
- Remove unused 'sys' import (F401)
- Remove unused exception variable 'e' in except clause (F841)
Co-Authored-By: Yue Guobin <yueguobin@outlook.com>
2026-03-10 01:08:20 +08:00
YueGuobin
73de248381
feat(copilot): add user-aware LLM calls and project cleanup
...
- Modified `llm_call` and `generate_title` functions to accept `config` parameter, extracting `user_id` and `jwt_token` for per-user LLM configuration and API authentication
- Updated `create_base_model_with_tools` and `create_title_model` calls to pass user authentication details
- Added `jwt_token` to state for tool usage in GNS3 API calls
- Integrated chat router into controller API routes under `/chat` endpoint
- Implemented `_cleanup_copilot_agent` method in `Project` class to remove AgentService resources upon project closure, preventing resource leaks
- Enhanced error handling in agent cleanup to avoid interrupting project close operations
2026-03-04 12:26:19 +08:00
Felix Schulz
8ab34924b5
Add 'created_by' field to track project creator
2026-02-21 22:15:21 +01:00
grossmj
b7d43b29cd
Fix tests after merging
2024-12-02 13:02:08 +10:00
grossmj
cbaa563996
Merge branch '2.2' into 3.0
...
# Conflicts:
# CHANGELOG
# gns3server/crash_report.py
# gns3server/static/web-ui/index.html
# gns3server/static/web-ui/main.9297104511b6616fc55c.js
# gns3server/utils/images.py
# gns3server/version.py
# tests/api/routes/compute/test_dynamips_nodes.py
# tests/handlers/api/compute/test_qemu.py
# tests/utils/test_images.py
2024-12-02 12:16:34 +10:00
grossmj
83921a45df
Fix use project name instead of ID for fast duplication when running local server. Fixes #2446
2024-11-26 12:07:06 +10:00
grossmj
7e902726bf
Fix issues after merge
2024-10-31 13:06:17 +10:00
grossmj
c4fcb43e78
Merge branch '2.2' into 3.0
...
# Conflicts:
# .github/workflows/testing.yml
# CHANGELOG
# README.md
# dev-requirements.txt
# gns3server/compute/docker/docker_vm.py
# gns3server/controller/export_project.py
# gns3server/controller/import_project.py
# gns3server/controller/project.py
# gns3server/crash_report.py
# gns3server/static/web-ui/index.html
# gns3server/static/web-ui/main.df8c319a3da6fb0e3629.js
# gns3server/version.py
# requirements.txt
# setup.py
# tests/compute/docker/test_docker_vm.py
# tests/controller/test_import_project.py
2024-10-31 12:54:35 +10:00
grossmj
24bfc205db
Symbolic links support for project export/import
2024-10-19 15:49:23 +10:00
grossmj
cafdb2522b
Add / update docstrings
2024-09-29 19:42:06 +07:00
grossmj
996dad2f5c
Support to reset MAC addresses for Docker nodes and some adjustments for fast duplication.
2024-09-26 18:41:23 +07:00
赵昕彧
3a896b6964
Duplicate faster - 2
2024-09-26 08:26:08 +08:00
grossmj
a02b57698a
Add missing imports
2024-09-25 19:45:14 +07:00
赵昕彧
2dbde5df22
Copying project files directly, rather than copying them in an import-export fashion, can make copying projects many times faster
2024-09-25 20:27:46 +08:00
赵昕彧
5ffe5fd9b3
Copying project files directly, rather than copying them in an import-export fashion, can make copying projects many times faster
2024-08-23 14:31:21 +08:00
grossmj
999f41b03e
Convert topologies < 3.0 to have valid node hostnames
2024-07-20 17:22:24 +02:00
grossmj
6ed18c561f
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/compute/qemu/qemu_vm.py
# gns3server/config_samples/gns3_server.conf
# gns3server/controller/export_project.py
# gns3server/controller/project.py
# gns3server/controller/snapshot.py
# gns3server/handlers/api/controller/project_handler.py
# tests/controller/test_export_project.py
# tests/controller/test_import_project.py
# tests/controller/test_snapshot.py
2024-07-07 19:04:50 +02:00
grossmj
d54c9db8c3
Option to keep the compute IDs unchanged when exporting a project
2024-07-06 17:08:16 +02:00
grossmj
08154e43aa
Fix error when snapshot exists with an underscore in the name
2024-07-05 12:04:53 +02: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
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
21049d73a5
Allow computes to be dynamically or manually allocated
2023-06-21 22:28:09 +09:30
grossmj
2361e138ec
Properly catch aiohttp client exception. Ref #2228
2023-05-30 16:17:12 +09:30
grossmj
27debfff8d
API endpoint to get the locked status of a project
2022-09-03 22:58:44 +02:00
grossmj
ca3bf592d6
Global project lock and unlock
2022-08-30 22:49:47 +02:00
grossmj
bdd703a0dc
Support to reset all console connections. Ref https://github.com/GNS3/gns3-server/issues/1619
2022-06-15 15:30:44 +02:00
grossmj
900d4f79ee
"Local" command line parameter is only for stopping
...
a server that has been started by the desktop GUI
2022-03-30 18:38:34 +08:00
grossmj
6ec028ea4e
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/compute/builtin/nodes/cloud.py
# gns3server/compute/vmware/vmware_vm.py
# gns3server/controller/link.py
# gns3server/controller/snapshot.py
# gns3server/handlers/api/compute/dynamips_vm_handler.py
# gns3server/handlers/api/compute/iou_handler.py
# gns3server/handlers/api/compute/qemu_handler.py
# gns3server/handlers/api/controller/link_handler.py
# gns3server/schemas/link.py
# gns3server/utils/path.py
# gns3server/version.py
# requirements.txt
2021-06-12 14:36:32 +09:30
grossmj
4e34ab8e4f
Link style support. Fixes https://github.com/GNS3/gns3-gui/issues/2461
2021-06-07 14:08:21 +09:30
grossmj
cefab8d362
Rename __json__() to asdict()
2021-04-17 23:34:28 +09:30
grossmj
44074ff7c9
Some cleaning.
2021-04-17 18:36:32 +09:30
grossmj
c021e21309
Use black with -l 120 param.
2021-04-13 18:46:50 +09:30
grossmj
f928738bd5
Use pyupgrade with --py36-plus param.
2021-04-13 18:37:58 +09:30
grossmj
30ebae207f
Use Pydantic to validate the server config file.
2021-04-12 17:02:23 +09:30
grossmj
d730c591b3
Refactor template management to use database.
2021-03-28 11:15:08 +10:30
grossmj
95ea1fa636
Providing the path to create a project is now deprecated.
2020-11-13 15:17:54 +10:30
grossmj
acc5c7ebfa
Update package versions.
...
Do not use Path in schemas (causes issues with empty paths).
Change how notifications are handled.
Run tests with Python 3.9
2020-11-11 17:18:41 +10:30
grossmj
a5d89b428a
Merge branch '2.2' into 3.0
...
# Conflicts:
# gns3server/controller/__init__.py
# gns3server/controller/compute.py
# gns3server/schemas/gns3vm.py
# gns3server/utils/application_id.py
# gns3server/version.py
# gns3server/web/web_server.py
2020-11-05 17:15:25 +10:30
grossmj
5d1fdceb98
Fix bug with application id allocation for IOU nodes. Fixes #3079
2020-10-27 19:41:24 +10:30
grossmj
eb3cb8a41f
Migration to FastAPI
2020-10-02 16:07:50 +09:30
grossmj
831ee5f468
Support to reset all console connections. Ref https://github.com/GNS3/gns3-server/issues/1619
2020-07-26 18:27:18 +09:30
grossmj
37c7202aa0
Use parent directory as working directory for project duplication and snapshots. Fixes https://github.com/GNS3/gns3-gui/issues/2909
2020-07-17 15:11:14 +09:30