How williamjensen17/network_config_generator works
Network_Config_Generator is a Windows desktop tool for semi-automatically creating Cisco switch configuration text. The user configures switch identity and access settings, defines VLANs and management addressing, and selects physical or EtherChannel ports with descriptions, enablement, modes, and VLAN membership; the application generates CLI text for display. The graph reflects the documented feature set and sampled code. Some form-to-generator wiring and unsampled settings behavior are not shown in the excerpts, so those links are represented only where the application structure supports them.
Main entry points: Form1.cs Switch editor · Generate.cs CLI config generator · Variables.cs Global settings and ports · SettingsForm.cs Settings window
Components 14
Desktop interface
- Application entry
Program.cs - Switch editor
Form1.cs - Settings window
SettingsForm.cs - General settings window
GeneralSettingsControl.cs
Configuration inputs
- General settings
GeneralSettingsControl.cs - VLAN settings
VlanSettingsControl.cs
Configuration state
- Global settings and ports
SwitchConfigGenerator.Core/Variables.cs - Physical port model
SwitchConfigGenerator.Core/Port.cs - Port-channel model
SwitchConfigGenerator.Core/GroupPort.cs - VLAN model
SwitchConfigGenerator.Core/Vlan.cs - Port modes
SwitchConfigGenerator.Core/PortMode.cs
Config generation
- CLI config generator
SwitchConfigGenerator.Core/Generate.cs - Generated CLI text
Other components
- Network engineer
Connections 17
- Network engineer → Switch editor: configures
- Application entry → Switch editor: starts
- Switch editor → Settings window: opens
- Switch editor → VLAN settings: edits VLANs
- Switch editor → Global settings and ports: updates settings
- Switch editor → Physical port model: updates ports
- Switch editor → Port-channel model: updates channels
- VLAN settings → VLAN model: creates and edits
- General settings → Global settings and ports: updates settings
- Settings window → General settings window: hosts
- Switch editor → CLI config generator: requests generation
- CLI config generator → Global settings and ports: reads settings
- CLI config generator → VLAN model: reads VLANs
- CLI config generator → Physical port model: reads ports
- CLI config generator → Port-channel model: reads channels
- CLI config generator → Generated CLI text: returns CLI text
- Switch editor → Generated CLI text: displays text