mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-26 05:40:20 +03:00
docs: Add snapshot prerequisite and suppress telnetlib3 noise
This commit is contained in:
parent
b23f2181c4
commit
647c5c0e65
@ -118,6 +118,9 @@ from .drawings import (
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# Suppress noisy telnet connection logs from device config tools.
|
||||
logging.getLogger("telnetlib3").setLevel(logging.WARNING)
|
||||
|
||||
# FastAPI app reference — used to lazily access app.state._db_engine for API key validation.
|
||||
# The db engine is initialized during the lifespan startup, which runs AFTER
|
||||
# register_starlette_routes() is called, so we cannot capture it at registration time.
|
||||
@ -958,7 +961,12 @@ async def snapshot_create(
|
||||
project_id: Annotated[str, Field(description="UUID of the project")],
|
||||
name: Annotated[str, Field(description="Name for the new snapshot")],
|
||||
) -> list[dict[str, Any]]:
|
||||
"""Create a new snapshot of a project."""
|
||||
"""Create a new snapshot of a project.
|
||||
|
||||
Prerequisite: All stoppable nodes (qemu, docker, dynamips, vpcs, iou, etc.)
|
||||
must be stopped first. Use node_stop_all before creating a snapshot.
|
||||
Cloud, NAT, and switch nodes are always-running and can be ignored.
|
||||
"""
|
||||
return await asyncio.to_thread(_run_handler_sync, create_snapshot_handler, {
|
||||
"project_id": project_id, "name": name,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user