From 009b6ebc75d7deb5076b228fb4dfa495c681e3c8 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 15 Feb 2026 12:02:40 +0100 Subject: [PATCH] =?UTF-8?q?feat(objects):=20add=20foundation=20objects=20(?= =?UTF-8?q?fabric,=20platform,=20site,=20ASNs)=20=E2=80=94=20refs=20#52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- objects/01-foundation.yml | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 objects/01-foundation.yml diff --git a/objects/01-foundation.yml b/objects/01-foundation.yml new file mode 100644 index 0000000..73267e7 --- /dev/null +++ b/objects/01-foundation.yml @@ -0,0 +1,58 @@ +# Foundation objects: Fabric, Platform, Site, Autonomous Systems +# Must be loaded first — referenced by all subsequent files +--- +apiVersion: infrahub.app/v1 +kind: Object +spec: + kind: LocationSite + data: + - name: dc1 + description: Primary data center +--- +apiVersion: infrahub.app/v1 +kind: Object +spec: + kind: InfraPlatform + data: + - name: arista_eos + description: Arista EOS + napalm_driver: eos + netmiko_device_type: arista_eos +--- +apiVersion: infrahub.app/v1 +kind: Object +spec: + kind: InfraAutonomousSystem + data: + - asn: 64999 + description: External border peer + as_type: private + - asn: 65000 + description: Spine AS + as_type: private + - asn: 65001 + description: Leaf pair 1 (leaf1/leaf2) + as_type: private + - asn: 65002 + description: Leaf pair 2 (leaf3/leaf4) + as_type: private + - asn: 65003 + description: Leaf pair 3 (leaf5/leaf6) + as_type: private + - asn: 65004 + description: Leaf pair 4 (leaf7/leaf8) + as_type: private +--- +apiVersion: infrahub.app/v1 +kind: Object +spec: + kind: InfraFabric + data: + - name: evpn-fabric + description: Arista EVPN-VXLAN reference fabric + underlay_protocol: ebgp + overlay_protocol: evpn + anycast_gateway_mac: "c001.cafe.babe" + spine_asn: "65000" + sites: + - dc1