kedge/docs/yang-compiler.md
Tyler King 6058e62348 Initial commit: Kedge network automation platform
Go-based network automation with YANG models, gRPC, Ansible,
Terraform, and Kubernetes integration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 12:09:30 -05:00

17 lines
535 B
Markdown

# YANG Compiler
Transforms device-agnostic YANG site configuration into vendor-specific payloads.
## Pipeline
1. `sovereign-sdwan.yang` defines the schema
2. Per-site XML instance data (e.g., `homelab.xml`)
3. Compiler validates and produces vendor payloads
4. Vendor targets: FortiOS REST, VyOS NETCONF, UniFi API
## Usage
```bash
python3 -m compiler.compile --site-config site-config/homelab.xml --output-format json
```
## Adding a Vendor
Create a new `to_<vendor>.py` module in `yang/compiler/` implementing `compile_zones()`.