Update README.md tables to be more compact
Add .ruff_cache to .gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
.envrc
|
.envrc
|
||||||
|
.ruff_cache
|
||||||
|
|||||||
70
README.md
70
README.md
@@ -24,13 +24,13 @@ Think `terraform plan` and `terraform apply`, but for your network fabric — po
|
|||||||
|
|
||||||
We chose [InfraHub](https://github.com/opsmill/infrahub) over NetBox as Source of Truth for several reasons:
|
We chose [InfraHub](https://github.com/opsmill/infrahub) over NetBox as Source of Truth for several reasons:
|
||||||
|
|
||||||
| Feature | NetBox | InfraHub |
|
| Feature | NetBox | InfraHub |
|
||||||
| ------------------- | ----------------------- | -------------------------------------------- |
|
| ------------------- | --------------------- | ------------------------------------ |
|
||||||
| **Schema** | Fixed DCIM/IPAM model | Fully customizable YAML schema |
|
| **Schema** | Fixed DCIM/IPAM model | Fully customizable YAML schema |
|
||||||
| **Git Integration** | External sync needed | Native - branches = data branches |
|
| **Git Integration** | External sync needed | Native - branches = data branches |
|
||||||
| **Versioning** | Changelog only | True Git-like versioning with merges |
|
| **Versioning** | Changelog only | True Git-like versioning with merges |
|
||||||
| **Transforms** | Limited | Built-in Jinja2 + Python transforms |
|
| **Transforms** | Limited | Built-in Jinja2 + Python transforms |
|
||||||
| **GraphQL** | Yes | Yes (auto-generated from schema) |
|
| **GraphQL** | Yes | Yes (auto-generated from schema) |
|
||||||
|
|
||||||
**Key benefits for this project:**
|
**Key benefits for this project:**
|
||||||
|
|
||||||
@@ -41,16 +41,16 @@ We chose [InfraHub](https://github.com/opsmill/infrahub) over NetBox as Source o
|
|||||||
|
|
||||||
## 🎛 Why Prefect?
|
## 🎛 Why Prefect?
|
||||||
|
|
||||||
| Feature | Benefit |
|
| Feature | Benefit |
|
||||||
| -------------------------------- | ------------------------------------------------------------------------- |
|
| -------------------------------- | ---------------------------------------------------------------------- |
|
||||||
| **Python-native workflows** | Use `@flow` and `@task` decorators — no YAML, just Python |
|
| **Python-native workflows** | Use `@flow` and `@task` decorators — no YAML, just Python |
|
||||||
| **Free secrets management** | Native `Secret` blocks for credentials (free in OSS) |
|
| **Free secrets management** | Native `Secret` blocks for credentials (free in OSS) |
|
||||||
| **Built-in UI** | Dashboard, logs, metrics, execution history via `prefect server start` |
|
| **Built-in UI** | Dashboard, logs, metrics, execution history via `prefect server start` |
|
||||||
| **No containerization required** | Run flows directly with `.serve()` — no Docker needed |
|
| **No containerization required** | Run flows directly with `.serve()` — no Docker needed |
|
||||||
| **Event-driven triggers** | Schedule, webhooks (via FastAPI), flow triggers out of the box |
|
| **Event-driven triggers** | Schedule, webhooks (via FastAPI), flow triggers out of the box |
|
||||||
| **Task dependencies** | Automatic dependency ordering via task result passing or `wait_for` |
|
| **Task dependencies** | Automatic dependency ordering via task result passing or `wait_for` |
|
||||||
| **Retry & error handling** | Built-in retry policies with `@task(retries=3)` |
|
| **Retry & error handling** | Built-in retry policies with `@task(retries=3)` |
|
||||||
| **Human-in-the-loop** | Native `pause_flow_run()` for approval workflows |
|
| **Human-in-the-loop** | Native `pause_flow_run()` for approval workflows |
|
||||||
|
|
||||||
## 🎯 Target Fabric
|
## 🎯 Target Fabric
|
||||||
|
|
||||||
@@ -67,12 +67,12 @@ Reference lab topology: [arista-evpn-vxlan-clab](https://gitea.arnodo.fr/Damien/
|
|||||||
|
|
||||||
Progress is tracked via issues. See [all issues](https://gitea.arnodo.fr/Damien/fabric-orchestrator/issues) or filter by phase:
|
Progress is tracked via issues. See [all issues](https://gitea.arnodo.fr/Damien/fabric-orchestrator/issues) or filter by phase:
|
||||||
|
|
||||||
| Phase | Description | Status |
|
| Phase | Description | Status |
|
||||||
| ----------- | ---------------------------------------------------------------------------- | -------------- |
|
| ----------- | ------------------------------------------------------------------------- | -------------- |
|
||||||
| **Phase 1** | YANG Path Discovery - Map EOS 4.35.0F YANG models, validate gNMI | ✅ Complete |
|
| **Phase 1** | YANG Path Discovery - Map EOS 4.35.0F YANG models, validate gNMI | ✅ Complete |
|
||||||
| **Phase 2** | InfraHub Client & Core Reconciler - SDK client, diff engine, YANG mappers | 🔄 In Progress |
|
| **Phase 2** | InfraHub Client & Core Reconciler - SDK client, diff engine, YANG mappers | 🔄 In Progress |
|
||||||
| **Phase 3** | Full Fabric Coverage - BGP, MLAG, VRFs mappers | 📋 Planned |
|
| **Phase 3** | Full Fabric Coverage - BGP, MLAG, VRFs mappers | 📋 Planned |
|
||||||
| **Phase 4** | Prefect Integration - Flows, webhooks, drift detection | 📋 Planned |
|
| **Phase 4** | Prefect Integration - Flows, webhooks, drift detection | 📋 Planned |
|
||||||
|
|
||||||
## 📁 Project Structure
|
## 📁 Project Structure
|
||||||
|
|
||||||
@@ -115,16 +115,16 @@ fabric-orchestrator/
|
|||||||
|
|
||||||
## 🛠️ Technology Stack
|
## 🛠️ Technology Stack
|
||||||
|
|
||||||
| Component | Technology | Purpose |
|
| Component | Technology | Purpose |
|
||||||
| --------------- | ------------------------------- | ------------------------------------------ |
|
| --------------- | -------------------------- | ------------------------------------ |
|
||||||
| Source of Truth | **InfraHub** | Intent definition via custom schema |
|
| Source of Truth | **InfraHub** | Intent definition via custom schema |
|
||||||
| Orchestrator | **Prefect** | Python-native workflow orchestration |
|
| Orchestrator | **Prefect** | Python-native workflow orchestration |
|
||||||
| Transport | gNMI | Configuration and telemetry |
|
| Transport | gNMI | Configuration and telemetry |
|
||||||
| Data Models | YANG (OpenConfig + Arista) | Structured configuration |
|
| Data Models | YANG (OpenConfig + Arista) | Structured configuration |
|
||||||
| Python Library | pygnmi + infrahub-sdk | gNMI/InfraHub interactions |
|
| Python Library | pygnmi + infrahub-sdk | gNMI/InfraHub interactions |
|
||||||
| CLI | Click + Rich | YANG discovery tools |
|
| CLI | Click + Rich | YANG discovery tools |
|
||||||
| Validation | Pydantic v2 | Intent data validation |
|
| Validation | Pydantic v2 | Intent data validation |
|
||||||
| Lab | ContainerLab + cEOS | Development environment |
|
| Lab | ContainerLab + cEOS | Development environment |
|
||||||
|
|
||||||
## 🔗 Related Projects
|
## 🔗 Related Projects
|
||||||
|
|
||||||
@@ -136,21 +136,25 @@ fabric-orchestrator/
|
|||||||
## 📚 References
|
## 📚 References
|
||||||
|
|
||||||
### InfraHub
|
### InfraHub
|
||||||
|
|
||||||
- [InfraHub Documentation](https://docs.infrahub.app)
|
- [InfraHub Documentation](https://docs.infrahub.app)
|
||||||
- [InfraHub Schema Guide](https://docs.infrahub.app/guides/create-schema)
|
- [InfraHub Schema Guide](https://docs.infrahub.app/guides/create-schema)
|
||||||
- [InfraHub Python SDK](https://github.com/opsmill/infrahub-sdk-python)
|
- [InfraHub Python SDK](https://github.com/opsmill/infrahub-sdk-python)
|
||||||
|
|
||||||
### Prefect
|
### Prefect
|
||||||
|
|
||||||
- [Prefect Documentation](https://docs.prefect.io)
|
- [Prefect Documentation](https://docs.prefect.io)
|
||||||
- [Prefect Flows](https://docs.prefect.io/latest/develop/write-flows/)
|
- [Prefect Flows](https://docs.prefect.io/latest/develop/write-flows/)
|
||||||
- [Prefect Tasks](https://docs.prefect.io/latest/develop/write-tasks/)
|
- [Prefect Tasks](https://docs.prefect.io/latest/develop/write-tasks/)
|
||||||
|
|
||||||
### YANG / gNMI
|
### YANG / gNMI
|
||||||
|
|
||||||
- [Arista gNMI Documentation](https://aristanetworks.github.io/openmgmt/configuration/gnmi/)
|
- [Arista gNMI Documentation](https://aristanetworks.github.io/openmgmt/configuration/gnmi/)
|
||||||
- [OpenConfig Models](https://github.com/openconfig/public)
|
- [OpenConfig Models](https://github.com/openconfig/public)
|
||||||
- [pygnmi Library](https://github.com/akarneliuk/pygnmi)
|
- [pygnmi Library](https://github.com/akarneliuk/pygnmi)
|
||||||
|
|
||||||
### EVPN-VXLAN
|
### EVPN-VXLAN
|
||||||
|
|
||||||
- [Arista BGP EVPN Configuration Example](https://overlaid.net/2019/01/27/arista-bgp-evpn-configuration-example/)
|
- [Arista BGP EVPN Configuration Example](https://overlaid.net/2019/01/27/arista-bgp-evpn-configuration-example/)
|
||||||
|
|
||||||
## 🚀 Getting Started
|
## 🚀 Getting Started
|
||||||
|
|||||||
Reference in New Issue
Block a user