Implement Azure Local Network Config Tool - Frontend Wizard and Backend CLI #84
+13,315
−4,198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements complete network switch configuration tool per design doc and roadmap: TypeScript wizard → JSON schema → Python CLI → vendor configs.
Architecture
Frontend: TypeScript Migration
Converted 1,326-line JavaScript app to typed TypeScript with Vite build system.
Core modules:
types.ts- Schema-derived interfaces with strict typingvalidator.ts- Ajv-based client validationapp.ts- Wizard state management and form logicutils.ts- Display name mappings and helpersBundle: 20.5KB → 6.5KB gzipped, <300ms builds
Backend: Python CLI
Three-command pipeline with role-based transformations:
Pipeline:
validator.py- jsonschema validation + cross-reference checks (VLANs, port-channels, BGP prefix lists)transformer.py- Role-specific computed values:renderer.py- Jinja2 template engine with vendor selectiontemplates/- 8 Dell OS10 production templatesTesting
Example Usage
Frontend wizard exports Standard JSON:
{ "switch": { "vendor": "dellemc", "role": "TOR1", "hostname": "rack1-tor1" }, "vlans": [...], "bgp": {...} }Backend processes to Dell OS10 config with computed priorities:
Deployment
GitHub Pages workflow updated for TypeScript build. Frontend served statically, backend runs locally via CLI.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https nerator e_modules/.bin/s--noprofile node /hom�� d/index.html git rgo/bin/bash --global credential.helpediff work_Switch_Conf--name-only bash --no�� assword=$GITHUB_TOKEN"; }; f get assword=$GITHUB_TOKEN"; }; f get cal/bin/bash get --global /home/REDACTED/.coplaywright install chromium --with-deps tr(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Start implementation
The user has attached the following file paths as relevant context:
- .github/copilot-instructions.md
[Chronological Review: The conversation began with the user requesting a comprehensive project refresh based on design and roadmap documents. The user specified the need for a granular implementation plan, including file-level details, dependency analysis, consistency checks, logic breakdowns, and validation steps. The user then provided additional notes for refinement, emphasizing the importance of the design and roadmap as the single source of truth, the need for standard JSON definitions, and the requirement for acceptance criteria. The user also inquired about backend development plans and requested a complete plan for all phases (2, 3, and 4) to facilitate a smooth transition to cloud execution. The user made further requests to refine example JSON, install Playwright for validation, and reiterated that both frontend and backend development needed to be refreshed based on the new design and roadmap. The conversation culminated in the user asking to run the implementation in the cloud and to start the implementation.][Intent Mapping:
[Technical Inventory:
[Code Archaeology: No specific code files or functions were discussed in detail, but the user emphasized the need for a comprehensive plan that includes file modifications and logic breakdowns.]
[Progress Assessment: The user has outlined the need for a complete implementation plan covering multiple phases, with specific requests for refinements and clarifications. The frontend and backend development are both acknowledged as needing a refresh.]
[Context Validation: All critical information for continuation is captured, including user requests for specific refinements, the need for a comprehensive plan, and the emphasis on using design and roadmap documents as references.]
[Recent Commands Analysis:
1. Conversation Overview: - Primary Objectives: The user requested a comprehensive project refresh based on design and roadmap documents, emphasizing the need for a detailed implementation plan and specific refinements. - Session Context: The conversation progressed from initial requests for a project refresh to detailed inquiries about backend development, JSON refinements, and the overall implementation plan for multiple phases. - User Intent Evolution: The user's needs evolved from seeking a detailed plan to requesting specific refinements and clarifications, culminating in a request to run the implementation in the cloud.- Technical Foundation:
- Design Document: design-doc.md - serves as a single source of truth for the project.
- Roadmap Document: roadmap.md - outlines project milestones and acceptance criteria.
- Tool: Playwright - installed for validation purposes.
- Codebase Status:
- No specific files or code segments were detailed, but the user emphasized the need for a comprehensive plan that includes file modifications and logic breakdowns.
- Problem Resolution:
- Issues Encountered: The use...
Created from VS Code.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.