Jeremy Grossmann
632b3daab7
Merge pull request #2635 from yueguobin/fix/iou-suspend-405
...
fix(iou): return 405 error for unsupported suspend operation
2026-03-15 22:47:42 +08:00
grossmj
6e7738a14f
Return 405 error for unsupported actions for other node types
2026-03-15 22:38:51 +08:00
grossmj
f41cc24383
Fix for duplicating Qemu nodes
2026-03-12 13:24:30 +08:00
YueGuobin
0056bdd19b
fix(iou): return 405 error for unsupported suspend operation
...
Fixed IOU node suspend API to return proper HTTP 405 Method Not Allowed
error instead of misleading 204 No Content response.
Changes:
- Added HTTPException import to iou_nodes.py
- Fixed suspend_iou_node route from /stop to /suspend (bug fix)
- Changed response from 204 No Content to 405 Method Not Allowed
- Added clear error message: "Suspend is not supported for IOU nodes"
This fix ensures clients receive explicit feedback when attempting to
suspend IOU nodes, which do not support suspend functionality.
Related issue: IOU nodes previously returned 404 when suspend was called
due to incorrect route registration.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-11 15:14:23 +08:00
Mark Paronyan
8c3aaa78f5
feat(compute): option to disable compute authentication
2026-03-03 00:28:57 +03:00
grossmj
5e3ca29c58
Fix updating packet filters
2026-02-21 21:42:22 +08:00
grossmj
ee9f974362
Fix packet capture for links connected to a cloud node. Fixes #2513
2025-03-16 21:12:33 +07:00
grossmj
035a104957
Fix capture on IOU/IOL links. Fixes #2477
2025-01-11 18:46:55 +07:00
grossmj
a00f53fbaa
Fix error 500 on PUT for cloud, nat, vmware and vpcs nodes. Fixes #2426
2024-11-19 12:21:35 +10:00
grossmj
a1666dd247
Fix MAC address support for Docker containers
2024-09-18 18:02:35 +07:00
grossmj
8c1dbf0084
Fix to allow duplicating IOS routers
2024-05-19 00:33:55 +07:00
grossmj
31c7fe88f1
Remove websocket.close()
2024-03-16 16:00:27 +01:00
grossmj
44c066ac68
Fix compute authentication for websocket endpoints
2023-10-22 12:44:39 +10:00
grossmj
e9e2dc2ca7
Fix validation issues and improve exceptions logs
2023-08-17 17:36:50 +10:00
grossmj
9c456532d0
Pydantic v2 migration
2023-08-04 18:20:06 +10:00
grossmj
4b791d4924
Fix websocket compute notifications after upgrade to FastAPI 0.97.0
2023-06-23 23:26:08 +09:30
grossmj
d867e1f1c1
Fix tests
2023-02-17 21:25:19 +08:00
grossmj
aaa6ca9445
Mark VMware and VirtualBox support as deprecated
2023-02-05 10:09:55 +08:00
grossmj
8ad7b3f613
Fix bug when creating Dynamips router with chassis setting
2022-12-24 18:03:00 +08:00
grossmj
17e0b2e259
Stricter checks to create/update an Ethernet switch and add tests
2022-12-24 08:20:51 +08:00
grossmj
80f5ca0c3f
Checks for valid hostname on server side for Dynamips, IOU, Qemu and Docker nodes
2022-07-17 11:51:29 +02:00
grossmj
9462bca124
Remove explicit Response for VPCS endpoints returning HTTP 204 status code
2022-07-16 00:14:31 +02:00
grossmj
fc6aeb715a
Remove explicit Response for endpoints returning HTTP 204 status code
2022-07-16 00:12:18 +02:00
grossmj
2535e5508d
Remove Qemu binary requirement
2022-04-19 18:21:39 +07:00
grossmj
e50bed5bee
Support delete Qemu disk image from API
...
Return the real disk image name in the 'hdx_disk_image_backed' property for Qemu VMs
2022-04-14 17:01:54 +07:00
grossmj
fda2a37b98
Handle creating Qemu disk images and resizing
2022-04-07 16:21:47 +08: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
74c675d5b0
Drop Windows support
2022-01-19 22:28:36 +10:30
grossmj
01a9e83f08
Ignore OSError when closing websocket
2021-12-08 00:00:54 +10:30
grossmj
38388f7ae5
Secure controller to compute communication using HTTP basic authentication
2021-11-18 18:37:10 +10:30
grossmj
bb15b13a9d
Return the current controller hostname/IP from any compute
2021-10-21 21:38:36 +10:30
grossmj
bc36d95060
Finalize image management refactoring and auto install appliance if possible
2021-10-10 17:35:11 +10:30
grossmj
ce55ec73a4
Fix exception with endpoints returning HTTP status code 204. Fixes #1891
2021-08-10 21:53:21 +09:30
grossmj
3ae7783360
Fix "-machine accel=tcg" check
2021-08-10 15:41:05 +09:30
grossmj
2bf16f1e5f
Change method to prevent forbidden directory traversal. Ref #1894
2021-05-16 14:29:56 +09:30
grossmj
f3d81fa450
Clean files and catch file path escape. Ref #1894
2021-05-15 22:35:44 +09:30
grossmj
9404c00411
Complete type annotations for API endpoints.
2021-04-18 15:40:38 +09:30
grossmj
cefab8d362
Rename __json__() to asdict()
2021-04-17 23:34:28 +09:30
grossmj
9c850e0f2b
Move schemas between compute and controller subpackages
2021-04-15 18:12:08 +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
a9eb035b7d
Move error responses to API routers.
2021-04-13 16:19:56 +09:30
grossmj
30ebae207f
Use Pydantic to validate the server config file.
2021-04-12 17:02:23 +09:30
grossmj
bf7cf862af
Refactor tests and start work on database integration.
2020-12-02 18:39:08 +10:30
grossmj
ae55c0ec9c
Fix tests.
2020-11-19 15:27:33 +10:30
grossmj
c043830e3f
Move endpoints to routes & preparations to use a database.
2020-11-19 15:21:03 +10:30