How kizaru1294989/ansible-multivendor-automatisation works
This repository is a CLI-driven Arista fabric discovery and Ansible configuration-generation toolkit, with separate LLDP topology mapping and backup/restore playbooks. The main workflow discovers a fabric, collects operator input for fabric settings, and generates Ansible inventory variables. Ansible then provides the deployment and restore surface. The README mainly contains unrelated Next.js/Go discussion, so product capabilities and relationships here are grounded in the tree and sampled source; links to unsampled playbook wiring are left unverified.
Main entry points: main.py Workflow CLI · deploy.yml Fabric deployment · lldp_mapper.py LLDP mapper · inventories Ansible inventories
Components 20
Fabric workflow
- Workflow CLI
main.py - Fabric variables
- Variable generator
generate_vars_auto.py - Static variable generator
generate_vars.py
Topology discovery
- Fabric discovery
discover_fabric.py
Ansible operations
- Ansible inventories
inventories - Fabric deployment
playbooks/deploy.yml - ISN deployment
playbooks/isn_deploy.yml - CLI operations
playbooks/cli.yml - Backup operations
playbooks/backups - Configuration restore
playbooks/restore.yml - BGP configuration
roles/arista/arista_bgp - MLAG configuration
roles/arista/arista_mlag - VXLAN EVPN
roles/arista/arista_vxlan-evpn_l3 - Reset configuration
roles/arista/arista_restore
Topology mapping
- LLDP mapper
lldp_mapper.py - Topology graph
lldp_mapper.py - HTML topology map
network_map.html
Other components
- Network operator
- Arista switches
Connections 23
- Network operator → Workflow CLI: runs workflow
main.py - Workflow CLI → Fabric discovery: starts discovery
main.py - Fabric discovery → Arista switches: queries eAPI
discover_fabric.py - Workflow CLI → Network operator: collects settings
main.py - Workflow CLI → Fabric variables: writes discovery data
- Workflow CLI → Variable generator: invokes generation
main.py - Variable generator → Ansible inventories: writes variables
generate_vars_auto.py - Network operator → Fabric deployment: runs deployment
- Ansible inventories → Fabric deployment: provides inputs
- Fabric deployment → BGP configuration: uses role
- Fabric deployment → MLAG configuration: uses role
- Fabric deployment → VXLAN EVPN: uses role
- Network operator → ISN deployment: runs deployment
- Network operator → CLI operations: runs commands
- Network operator → Backup operations: runs backups
- Network operator → Configuration restore: runs restore
- Configuration restore → Reset configuration: uses role
- Network operator → LLDP mapper: runs mapper
lldp_mapper.py - LLDP mapper → Arista switches: collects LLDP
lldp_mapper.py - LLDP mapper → Topology graph: builds graph
lldp_mapper.py - Topology graph → HTML topology map: renders map
lldp_mapper.py - Network operator → Static variable generator: runs generation
- Static variable generator → Ansible inventories: writes variables
generate_vars.py