# celorissi/netops-automation-portal architecture

> Architecture diagram of the GitHub repository celorissi/netops-automation-portal, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/celorissi/netops-automation-portal
- Repository: https://github.com/celorissi/netops-automation-portal

## Overview

NetOps Automation Portal is a Flask-based network automation product with two distinct workflows: Cisco switch provisioning and configuration backups, plus multi-vendor LAN/VPN deployment, audit, rollback, connectivity validation, and backups. The Cisco web workflow runs through the Flask app and streams execution logs over Socket.IO; VPN scripts can also be run directly from the command line. Excerpts show several script-to-device and config-file interactions; other VPN workflow relationships are documented in the README. Unexcerpted script internals are not assumed.

Main entry points: [`part2_vpn_ipsec/config`](https://github.com/celorissi/netops-automation-portal/tree/main/part2_vpn_ipsec/config) (LAN and VPN Configs), [`part1_cisco_switch/app.py`](https://github.com/celorissi/netops-automation-portal/blob/main/part1_cisco_switch/app.py) (Flask and SocketIO), [`part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py`](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py) (Palo Alto VPN Deploy), [`part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py`](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py) (FortiGate VPN Deploy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Cisco Portal"]
  node_portal_app["Flask and SocketIO<br/>[app.py]"]
  node_portal_ui["Portal Pages"]
end

subgraph group_lan["LAN Automation"]
  node_lan_pa_deploy["Palo Alto LAN Deploy"]
  node_lan_fgt_deploy["FortiGate LAN Deploy"]
  node_lan_audit["Palo Alto LAN Audit"]
  node_lan_fgt_rollback["FortiGate LAN Rollback"]
  node_lan_pa_rollback["Palo Alto LAN Rollback"]
end

subgraph group_vpn["VPN Automation"]
  node_vpn_pa_deploy["Palo Alto VPN Deploy"]
  node_vpn_fgt_deploy["FortiGate VPN Deploy"]
  node_vpn_pa_rollback["Palo Alto VPN Rollback"]
  node_vpn_fgt_rollback["FortiGate VPN Rollback"]
  node_vpn_validate["VPN Connectivity Check"]
  node_pa_backup["Palo Alto Backup"]
  node_fgt_backup["FortiGate Backup"]
end

subgraph group_state["Configuration State"]
  node_switch_backups[("Switch Backups")]
  node_vpn_configs["LAN and VPN Configs"]
  node_vpn_backups[("Firewall Backups")]
end

node_operator(("Network Operator"))
node_cli(("CLI Operator"))
node_switch{{"Cisco Switch"}}
node_paloalto{{"Palo Alto Firewall"}}
node_fortigate{{"FortiGate Firewall"}}

node_operator -->|"uses"| node_portal_app
node_portal_app -->|"renders"| node_portal_ui
node_portal_ui -.->|"submits actions"| node_portal_app
node_portal_app -->|"configures and reads"| node_switch
node_portal_app -->|"writes and lists"| node_switch_backups
node_cli -.->|"runs"| node_lan_pa_deploy
node_cli -.->|"runs"| node_lan_fgt_deploy
node_cli -.->|"runs"| node_lan_audit
node_cli -.->|"runs"| node_lan_fgt_rollback
node_cli -.->|"runs"| node_lan_pa_rollback
node_cli -->|"runs"| node_vpn_pa_deploy
node_cli -->|"runs"| node_vpn_fgt_deploy
node_cli -.->|"runs"| node_vpn_pa_rollback
node_cli -.->|"runs"| node_vpn_fgt_rollback
node_cli -->|"runs"| node_vpn_validate
node_cli -->|"runs"| node_pa_backup
node_cli -->|"runs"| node_fgt_backup
node_lan_pa_deploy -->|"reads config"| node_vpn_configs
node_lan_fgt_deploy -->|"reads config"| node_vpn_configs
node_lan_audit -->|"checks LAN state"| node_paloalto
node_lan_fgt_rollback -->|"reads removal config"| node_vpn_configs
node_lan_pa_rollback -->|"reads removal config"| node_vpn_configs
node_vpn_pa_deploy -->|"reads config"| node_vpn_configs
node_vpn_fgt_deploy -->|"reads config"| node_vpn_configs
node_vpn_pa_deploy -->|"configures"| node_paloalto
node_vpn_fgt_deploy -->|"configures"| node_fortigate
node_vpn_pa_rollback -->|"reads removal config"| node_vpn_configs
node_vpn_fgt_rollback -->|"reads removal config"| node_vpn_configs
node_vpn_pa_rollback -->|"removes config"| node_paloalto
node_vpn_fgt_rollback -->|"removes config"| node_fortigate
node_vpn_validate -->|"checks tunnel and ping"| node_paloalto
node_vpn_validate -->|"checks tunnel and ping"| node_fortigate
node_pa_backup -->|"backs up config"| node_paloalto
node_fgt_backup -->|"backs up config"| node_fortigate
node_pa_backup -.->|"writes snapshot"| node_vpn_backups
node_fgt_backup -.->|"writes snapshot"| node_vpn_backups

click node_portal_app "https://github.com/celorissi/netops-automation-portal/blob/main/part1_cisco_switch/app.py"
click node_portal_ui "https://github.com/celorissi/netops-automation-portal/tree/main/part1_cisco_switch/templates"
click node_switch_backups "https://github.com/celorissi/netops-automation-portal/tree/main/part1_cisco_switch/backups"
click node_lan_pa_deploy "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.1.deploy_paloalto_lan.py"
click node_lan_fgt_deploy "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.2.deploy_fortigate_lan.py"
click node_lan_audit "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.3.audit_paloalto_lan.py"
click node_lan_fgt_rollback "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.4.rollback_fortigate_lan.py"
click node_lan_pa_rollback "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.5.rollback_paloalto_lan.py"
click node_vpn_pa_deploy "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py"
click node_vpn_fgt_deploy "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py"
click node_vpn_pa_rollback "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.3.rollback_paloalto_vpn.py"
click node_vpn_fgt_rollback "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.4.rollback_fortigate_vpn.py"
click node_vpn_validate "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.5.validate_vpn_connectivity.py"
click node_pa_backup "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.6.backup_paloalto.py"
click node_fgt_backup "https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.7.backup_fortigate.py"
click node_vpn_configs "https://github.com/celorissi/netops-automation-portal/tree/main/part2_vpn_ipsec/config"
click node_vpn_backups "https://github.com/celorissi/netops-automation-portal/tree/main/part2_vpn_ipsec/backup"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_portal_app,node_portal_ui toneBlue
class node_lan_pa_deploy,node_lan_fgt_deploy,node_lan_audit,node_lan_fgt_rollback,node_lan_pa_rollback toneAmber
class node_vpn_pa_deploy,node_vpn_fgt_deploy,node_vpn_pa_rollback,node_vpn_fgt_rollback,node_vpn_validate,node_pa_backup,node_fgt_backup toneMint
class node_switch_backups,node_vpn_configs,node_vpn_backups toneRose
class node_operator,node_cli,node_switch,node_paloalto,node_fortigate toneIndigo
```

## Components

### Cisco Portal

- [Flask and SocketIO](https://github.com/celorissi/netops-automation-portal/blob/main/part1_cisco_switch/app.py): `part1_cisco_switch/app.py`
- [Portal Pages](https://github.com/celorissi/netops-automation-portal/tree/main/part1_cisco_switch/templates): `part1_cisco_switch/templates`

### LAN Automation

- [Palo Alto LAN Deploy](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.1.deploy_paloalto_lan.py): `part2_vpn_ipsec/scripts/1.1.deploy_paloalto_lan.py`
- [FortiGate LAN Deploy](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.2.deploy_fortigate_lan.py): `part2_vpn_ipsec/scripts/1.2.deploy_fortigate_lan.py`
- [Palo Alto LAN Audit](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.3.audit_paloalto_lan.py): `part2_vpn_ipsec/scripts/1.3.audit_paloalto_lan.py`
- [FortiGate LAN Rollback](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.4.rollback_fortigate_lan.py): `part2_vpn_ipsec/scripts/1.4.rollback_fortigate_lan.py`
- [Palo Alto LAN Rollback](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/1.5.rollback_paloalto_lan.py): `part2_vpn_ipsec/scripts/1.5.rollback_paloalto_lan.py`

### VPN Automation

- [Palo Alto VPN Deploy](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py): `part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py`
- [FortiGate VPN Deploy](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py): `part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py`
- [Palo Alto VPN Rollback](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.3.rollback_paloalto_vpn.py): `part2_vpn_ipsec/scripts/2.3.rollback_paloalto_vpn.py`
- [FortiGate VPN Rollback](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.4.rollback_fortigate_vpn.py): `part2_vpn_ipsec/scripts/2.4.rollback_fortigate_vpn.py`
- [VPN Connectivity Check](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.5.validate_vpn_connectivity.py): `part2_vpn_ipsec/scripts/2.5.validate_vpn_connectivity.py`
- [Palo Alto Backup](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.6.backup_paloalto.py): `part2_vpn_ipsec/scripts/2.6.backup_paloalto.py`
- [FortiGate Backup](https://github.com/celorissi/netops-automation-portal/blob/main/part2_vpn_ipsec/scripts/2.7.backup_fortigate.py): `part2_vpn_ipsec/scripts/2.7.backup_fortigate.py`

### Configuration State

- [Switch Backups](https://github.com/celorissi/netops-automation-portal/tree/main/part1_cisco_switch/backups): `part1_cisco_switch/backups`
- [LAN and VPN Configs](https://github.com/celorissi/netops-automation-portal/tree/main/part2_vpn_ipsec/config): `part2_vpn_ipsec/config`
- [Firewall Backups](https://github.com/celorissi/netops-automation-portal/tree/main/part2_vpn_ipsec/backup): `part2_vpn_ipsec/backup`

### Other components

- **Network Operator**
- **CLI Operator**
- **Cisco Switch**
- **Palo Alto Firewall**
- **FortiGate Firewall**

## Connections

- Network Operator → Flask and SocketIO: uses (evidence: `README.md`)
- Flask and SocketIO → Portal Pages: renders (evidence: `part1_cisco_switch/app.py`)
- Portal Pages → Flask and SocketIO: submits actions
- Flask and SocketIO → Cisco Switch: configures and reads (evidence: `part1_cisco_switch/app.py`)
- Flask and SocketIO → Switch Backups: writes and lists (evidence: `part1_cisco_switch/app.py`)
- CLI Operator → Palo Alto LAN Deploy: runs (evidence: `README.md`)
- CLI Operator → FortiGate LAN Deploy: runs (evidence: `README.md`)
- CLI Operator → Palo Alto LAN Audit: runs (evidence: `README.md`)
- CLI Operator → FortiGate LAN Rollback: runs (evidence: `README.md`)
- CLI Operator → Palo Alto LAN Rollback: runs (evidence: `README.md`)
- CLI Operator → Palo Alto VPN Deploy: runs (evidence: `README.md`)
- CLI Operator → FortiGate VPN Deploy: runs (evidence: `README.md`)
- CLI Operator → Palo Alto VPN Rollback: runs (evidence: `README.md`)
- CLI Operator → FortiGate VPN Rollback: runs (evidence: `README.md`)
- CLI Operator → VPN Connectivity Check: runs (evidence: `README.md`)
- CLI Operator → Palo Alto Backup: runs (evidence: `README.md`)
- CLI Operator → FortiGate Backup: runs (evidence: `README.md`)
- Palo Alto LAN Deploy → LAN and VPN Configs: reads config (evidence: `part2_vpn_ipsec/scripts/1.1.deploy_paloalto_lan.py`)
- FortiGate LAN Deploy → LAN and VPN Configs: reads config (evidence: `part2_vpn_ipsec/scripts/1.2.deploy_fortigate_lan.py`)
- Palo Alto LAN Audit → Palo Alto Firewall: checks LAN state (evidence: `part2_vpn_ipsec/scripts/1.3.audit_paloalto_lan.py`)
- FortiGate LAN Rollback → LAN and VPN Configs: reads removal config (evidence: `part2_vpn_ipsec/scripts/1.4.rollback_fortigate_lan.py`)
- Palo Alto LAN Rollback → LAN and VPN Configs: reads removal config (evidence: `part2_vpn_ipsec/scripts/1.5.rollback_paloalto_lan.py`)
- Palo Alto VPN Deploy → LAN and VPN Configs: reads config (evidence: `part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py`)
- FortiGate VPN Deploy → LAN and VPN Configs: reads config (evidence: `part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py`)
- Palo Alto VPN Deploy → Palo Alto Firewall: configures (evidence: `part2_vpn_ipsec/scripts/2.1.deploy_paloalto_vpn.py`)
- FortiGate VPN Deploy → FortiGate Firewall: configures (evidence: `part2_vpn_ipsec/scripts/2.2.depoly_fortigate_vpn.py`)
- Palo Alto VPN Rollback → LAN and VPN Configs: reads removal config (evidence: `part2_vpn_ipsec/scripts/2.3.rollback_paloalto_vpn.py`)
- FortiGate VPN Rollback → LAN and VPN Configs: reads removal config (evidence: `part2_vpn_ipsec/scripts/2.4.rollback_fortigate_vpn.py`)
- Palo Alto VPN Rollback → Palo Alto Firewall: removes config (evidence: `part2_vpn_ipsec/scripts/2.3.rollback_paloalto_vpn.py`)
- FortiGate VPN Rollback → FortiGate Firewall: removes config (evidence: `part2_vpn_ipsec/scripts/2.4.rollback_fortigate_vpn.py`)
- VPN Connectivity Check → Palo Alto Firewall: checks tunnel and ping (evidence: `part2_vpn_ipsec/scripts/2.5.validate_vpn_connectivity.py`)
- VPN Connectivity Check → FortiGate Firewall: checks tunnel and ping (evidence: `part2_vpn_ipsec/scripts/2.5.validate_vpn_connectivity.py`)
- Palo Alto Backup → Palo Alto Firewall: backs up config (evidence: `README.md`)
- FortiGate Backup → FortiGate Firewall: backs up config (evidence: `README.md`)
- Palo Alto Backup → Firewall Backups: writes snapshot
- FortiGate Backup → Firewall Backups: writes snapshot
