mirror of
https://github.com/dtzp555-max/aci-sim.git
synced 2026-07-21 21:15:12 +00:00
Clean-room README test found a newcomer hits failures in the first 5 min — all doc/script, not sim bugs. Fixes: - scripts/run.sh: use ./.venv/bin/python (was bare `python` → ModuleNotFoundError: uvicorn unless the venv was activated; now matches sandbox-up.sh). - NEW `aci-sim query CLASS [--dn/--host/--json]`: stdlib aaaLogin→cookie→query helper so newcomers don't hand-roll auth cookies (the old README smoke test `curl class/fabricNode.json` had no auth → returned an APIC error envelope). - README: 60-second quickstart + embedded topology screenshot (docs/images/ topology.png), port-mode leads with `aci-sim run`, smoke test uses `aci-sim query`, install notes git+https is package-only. 900 tests pass (+12 for aci-sim query). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
13 lines
404 B
Bash
Executable File
13 lines
404 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Equivalent to `aci-sim run` (see README.md §5 CLI) after `pip install -e .`;
|
|
# this script remains the dependency-free entrypoint and keeps working
|
|
# unchanged.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
PY="./.venv/bin/python"
|
|
[ -x "$PY" ] || PY="python3"
|
|
if [ ! -f certs/sim.crt ] || [ ! -f certs/sim.key ]; then
|
|
bash scripts/gen_certs.sh
|
|
fi
|
|
"$PY" -m aci_sim.runtime.supervisor
|