fix(objects): split foundation/fabric and renumber files for load order — refs #52

This commit is contained in:
Damien
2026-02-15 15:18:40 +01:00
parent 3838169ff7
commit 5f071e5716
9 changed files with 16 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
# Foundation objects: Fabric, Platform, Site, Autonomous Systems # Foundation objects: Site, Platform, Autonomous Systems
# Must be loaded first — referenced by all subsequent files # Must be loaded first — referenced by all subsequent files
--- ---
apiVersion: infrahub.app/v1 apiVersion: infrahub.app/v1
@@ -39,17 +39,3 @@ spec:
- asn: 65004 - asn: 65004
description: Leaf pair 4 (leaf7/leaf8) description: Leaf pair 4 (leaf7/leaf8)
as_type: private as_type: private
---
apiVersion: infrahub.app/v1
kind: Object
spec:
kind: InfraFabric
data:
- name: evpn-lab
description: Arista EVPN-VXLAN reference fabric
underlay_protocol: ebgp
overlay_protocol: evpn
anycast_gateway_mac: "c001.cafe.babe"
spine_asn: "65000"
sites:
- dc1

15
objects/02-fabric.yml Normal file
View File

@@ -0,0 +1,15 @@
# Fabric definition — depends on LocationSite and InfraAutonomousSystem from 01-foundation
---
apiVersion: infrahub.app/v1
kind: Object
spec:
kind: InfraFabric
data:
- name: evpn-lab
description: Arista EVPN-VXLAN reference fabric
underlay_protocol: ebgp
overlay_protocol: evpn
anycast_gateway_mac: "c001.cafe.babe"
spine_asn: "65000"
sites:
- dc1