How diogodealencar-del/panorama-cleanup works
Panorama Configuration Analyzer is a local tool for auditing and safely cleaning Palo Alto Panorama XML backups. Users run independent inventory, analysis, planning, apply, and validation commands; each consumes the supplied backup and any explicitly selected prior-run artifacts. Planning proposes Shared centralization and cleanup, while apply changes only an XML copy and validation checks the result. The README also documents generated PAN-OS CLI/XML API commands and Claude skills; the tool itself does not connect to Panorama or commit/push changes. Relationships below follow the sampled modules and README; several implementation details are unsampled.
Main entry points: cli.py CLI modes · analysis.py Analysis orchestration · inventory.py Object inventory · xml_reader.py XML reader
Components 19
Input and runs
- CLI modes
panorama_cleanup/cli.py - Run context
panorama_cleanup/run_context.py - XML reader
panorama_cleanup/xml_reader.py
Inventory and analysis
- Object inventory
panorama_cleanup/inventory.py - Analysis orchestration
panorama_cleanup/analysis.py - Dependency graph
panorama_cleanup/dependency_analyzer.py - Usage classification
panorama_cleanup/unused_objects.py - Duplicate analysis
panorama_cleanup/duplicate_analyzer.py
Planning and apply
- Change planner
panorama_cleanup/planner.py - Effective model
panorama_cleanup/effective_model.py - Shared converter
panorama_cleanup/shared_converter.py - Unused cleanup
panorama_cleanup/cleanup.py
Validation and outputs
- Final validation
panorama_cleanup/final_validation.py - Policy comparison
panorama_cleanup/policy_comparator.py - Reports
panorama_cleanup/report_generator.py - PAN-OS commands
panorama_cleanup/generate_cli.py
Other components
- Operator
- Panorama
- Claude skill
skill/run.py
Connections 21
- Operator → CLI modes: runs mode
README.md - CLI modes → Run context: creates run
panorama_cleanup/cli.py - CLI modes → XML reader: reads backup
panorama_cleanup/cli.py - XML reader → Object inventory: provides metadata
panorama_cleanup/inventory.py - CLI modes → Object inventory: builds inventory
panorama_cleanup/cli.py - Analysis orchestration → Object inventory: builds inventory
panorama_cleanup/analysis.py - Analysis orchestration → Dependency graph: analyzes references
panorama_cleanup/analysis.py - Analysis orchestration → Usage classification: classifies usage
panorama_cleanup/analysis.py - Analysis orchestration → Duplicate analysis: analyzes duplicates
panorama_cleanup/analysis.py - CLI modes → Analysis orchestration: runs analysis
panorama_cleanup/cli.py - CLI modes → Change planner: plans changes
panorama_cleanup/cli.py - Change planner → Effective model: checks equivalence
panorama_cleanup/planner.py - CLI modes → Shared converter: applies plan
panorama_cleanup/cli.py - CLI modes → Unused cleanup: applies cleanup
panorama_cleanup/cli.py - CLI modes → Final validation: validates result
panorama_cleanup/cli.py - Final validation → Policy comparison: compares policies
panorama_cleanup/final_validation.py - CLI modes → Reports: writes reports
panorama_cleanup/cli.py - CLI modes → PAN-OS commands: generates commands
README.md - PAN-OS commands → Panorama: commands for
README.md - Operator → Claude skill: requests workflow
README.md - Claude skill → CLI modes: invokes modes
README.md