[Phase 2] Define Infrahub Schema for EVPN-VXLAN Fabric #41
Notifications
Due Date
No due date set.
Blocks
#30 [Phase 2] Create Infrahub Transforms - VLANs, Interfaces, VXLAN
Damien/fabric-orchestrator
#31 [Phase 3] Implement BGP Infrahub Transforms - Underlay and EVPN Overlay
Damien/fabric-orchestrator
#32 [Phase 3] Implement MLAG Infrahub Transforms
Damien/fabric-orchestrator
#33 [Phase 3] Implement VRF/L3VNI Infrahub Transforms
Damien/fabric-orchestrator
Reference: Damien/fabric-orchestrator#41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Define the Infrahub schema to model all network fabric objects required for EVPN-VXLAN orchestration, replacing NetBox as the Source of Truth.
Context
Infrahub requires explicit schema definitions for all data objects. This schema forms the foundation for all GraphQL queries and transforms. We can leverage the opsmill/schema-library as a starting point and extend it for EVPN-VXLAN specifics.
Tasks
Schema Components
Core Infrastructure (from schema-library or custom)
VLAN & VXLAN
VRF & L3VNI
BGP
MLAG
Output Files
Schema Validation
Acceptance Criteria
Migration Notes (from NetBox)
Related
Initial Schema Proposal
Branch created:
feature/41-infrahub-schemaSchema Structure
Key Design Choices
Interface Generics: All interface types (
Ethernet,Loopback,Vlan,Lag,Vxlan) inherit fromInfraInterfacegeneric for polymorphic queriesMLAG Domain Model: MLAG is a domain with exactly 2 devices, plus per-device config (
MlagPeerConfig) and shared MLAG interfaces (MlagInterface)BGP Hierarchy:
BGPRouterConfig→BGPPeerGroup→BGPSessionenables template-based configuration matching Arista EOS structureEVPN per VLAN:
EVPNInstanceallows device-specific RD/RT while referencing commonVLAN/VNIMapping to arista-evpn-vxlan-clab
InfraDevice+InfraAutonomousSystemInfraDevice+InfraAutonomousSystemInfraVLAN+InfraVNI+InfraEVPNInstanceInfraMlagDomain+ 2xInfraMlagPeerConfigInfraInterfaceLagInfraBGPPeerGroupNext Steps
📋 Schema Refinement Sub-tasks
Audit du schéma réalisé, 7 sous-issues créées pour corriger les faiblesses identifiées :
🔴 Critiques (séquentielles, à traiter en premier)
bgp.ymlbase.yml,vlan_vxlan.ymlvlan_vxlan.yml🟠🟡 Améliorations (parallélisables après les critiques)
base.ymlextensions.ymlbase.yml,bgp.ymlvlan_vxlan.ymlGraphe de dépendances
Branche :
feature/41-infrahub-schemaValidation à chaque étape :
infrahubctl schema check schemas/