How shalusindhu637-ctrl/self-healing-network works
Self-Healing Network is a Flask-based network-health simulator and monitoring system. Users operate a browser dashboard to inspect topology and health, simulate or restore host and link failures, and trigger or configure recovery. The Flask application routes these actions to the detector, topology, and recovery logic; those components record operational state and events in SQLite. The README also identifies real-time dashboard monitoring as a product capability. Edges reflect shown calls and documented dashboard/API use; unsampled route details are not expanded.
Main entry points: app.py Flask API · database.py Data Access · dashboard.js Web Dashboard · network_topology.py Topology Manager
Components 11
Dashboard
- Web Dashboard
SelfHealingNetwork/static/js/dashboard.js - Dashboard Page
SelfHealingNetwork/templates/index.html - Dashboard Styles
SelfHealingNetwork/static/css/style.css
Web API
- Flask API
SelfHealingNetwork/app.py
Network Operations
- Failure Detector
SelfHealingNetwork/failure_detector.py - Topology Manager
SelfHealingNetwork/network_topology.py - Recovery Manager
SelfHealingNetwork/recovery_manager.py
Persistence
- Database Config
SelfHealingNetwork/db_config.py - Data Access
SelfHealingNetwork/database.py - SQLite Store
SelfHealingNetwork/database.py
Other components
- Operator
Connections 16
- Operator → Web Dashboard: uses
README.md - Dashboard Page → Web Dashboard: loads
- Dashboard Page → Dashboard Styles: styles with
- Web Dashboard → Flask API: requests API
SelfHealingNetwork/static/js/dashboard.js - Flask API → Web Dashboard: serves dashboard
- Flask API → Failure Detector: controls detection
SelfHealingNetwork/app.py - Flask API → Topology Manager: serves topology
SelfHealingNetwork/app.py - Flask API → Recovery Manager: triggers recovery
SelfHealingNetwork/app.py - Failure Detector → Topology Manager: updates failures
SelfHealingNetwork/failure_detector.py - Failure Detector → Data Access: logs failures
SelfHealingNetwork/failure_detector.py - Topology Manager → Data Access: persists topology
SelfHealingNetwork/network_topology.py - Recovery Manager → Topology Manager: checks routes
SelfHealingNetwork/recovery_manager.py - Recovery Manager → Data Access: logs outcomes
SelfHealingNetwork/recovery_manager.py - Data Access → Database Config: gets path
SelfHealingNetwork/database.py - Data Access → SQLite Store: reads and writes
SelfHealingNetwork/database.py - Flask API → Data Access: queries records
SelfHealingNetwork/app.py