Skip to content

EN: A simple but robust web tool that generates configuration files for Cisco and HPE/Aruba devices. -- PT: Uma ferramenta web simples porém robusta que gera arquivos de configuração para dispositivos Cisco e HPE/Aruba.

License

Notifications You must be signed in to change notification settings

solopx/netconfgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Badge Flask Badge Jinja Badge

Network Configuration Generator

A professional web-based tool for network engineers and administrators to rapidly generate configuration files for Cisco and HPE/Aruba devices.

Bridge the gap between planning and deployment with a simple, validated interface.

Features

Multi-Platform Support

  • Cisco IOS-XE - Optimized for Catalyst switching platforms.
  • Cisco NX-OS - Tailored for Nexus data center switching.
  • HPE/Aruba Comware - Support for legacy HPE and Comware-based switches.
  • Aruba AOS-CX - Modern syntax support including advanced L2/L3 port logic.

Core Capabilities

  • VLAN Management: Add, edit, and delete VLANs with optional SVI (IP) configuration.
  • Interface Flexibility:
    • Access & Trunk Modes: Standard switching port configurations.
    • Port Ranges: Bulk configure interfaces using standard notation (e.g., 1/1-48).
    • L3 Routing: Toggle AOS-CX ports between routing and no routing modes.
  • Voice VLANs: Automated platform-specific syntax (e.g., switchport voice vlan vs hybrid port modes).
  • Global Services: One-click configuration for:
    • NTP Servers for time synchronization.
    • Syslog Hosts for centralized logging.
    • DNS Servers for name resolution.
    • SNMP Communities for monitoring.

Getting Started

  1. Clone the repository:
    git clone https://github.com/solopx/netconfgen.git
  2. Browse to the directory:
    cd netconfgen
  3. Install dependencies:
    pip install -r requirements.txt
  4. Set your session secret:
    for linux/bash:
    export SESSION_SECRET="your-secure-key"
    
    for windows/cmd:
    set SESSION_SECRET="your-secure-key"
  5. Run the main python app:
    python main.py
  6. Open your web browser and navigate to http://localhost:5000

How it Works

  1. Initialize Global Configuration: Set your device hostname and management servers.
  2. Define VLANs: Create your Layer 2 broadcast domains and Layer 3 interfaces.
  3. Map Interfaces: Assign ports to VLANs or configure high-bandwidth trunks.
  4. Generate & Export: Select your target platform and download the CLI-ready configuration.

Screenshots

Important Notes

  • Safety First: Always review and validate generated configurations in a lab environment before deploying to production.

  • IP Validation: Built-in validation ensures IP addresses and netmasks follow standard networking protocols.

  • In-Memory Storage: For security and simplicity, this version stores data in volatile memory. Configurations are cleared when the server restarts.

License

This project is licensed under the MIT License - feel free to modify and use it for your needs.

About

EN: A simple but robust web tool that generates configuration files for Cisco and HPE/Aruba devices. -- PT: Uma ferramenta web simples porém robusta que gera arquivos de configuração para dispositivos Cisco e HPE/Aruba.

Topics

Resources

License

Stars

Watchers

Forks