Add topology endpoint and checklist tracking in spec.

Expose nodes/edges topology view and convert technical spec progress items to checkbox status.

Made-with: Cursor
This commit is contained in:
Andrey Lutsenko
2026-04-09 22:02:33 +10:00
parent 9e678fcfc7
commit ab94409a52
3 changed files with 128 additions and 29 deletions
+7
View File
@@ -13,6 +13,7 @@
- `GET /api/scans/{id}/snmp` - результаты SNMP v2c (`sysName`, `sysDescr`, `sysObjectID`).
- `GET /api/scans/{id}/lldp` - LLDP соседи (если устройство отдает LLDP-MIB по SNMP).
- `GET /api/scans/{id}/links` - базовые связи из LLDP с попыткой сопоставления по `remote_sys_name`.
- `GET /api/scans/{id}/topology` - граф `nodes/edges` для визуализации.
- Валидация CIDR и exclude IP.
- Два backend-хранилища: in-memory и PostgreSQL.
- После создания scan запускается фоновый discovery с обновлением статуса и прогресса.
@@ -166,6 +167,12 @@ curl -s http://localhost:8080/api/scans/<scan_id>/lldp?limit=1000
curl -s http://localhost:8080/api/scans/<scan_id>/links?limit=1000
```
Получить topology (nodes/edges):
```bash
curl -s http://localhost:8080/api/scans/<scan_id>/topology?limit=2000
```
## Запуск как сервис на Linux (systemd)
1. Собрать бинарник: