From 77ebc544810d5a9f6ab5fd70899d760783e63868 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Fri, 13 Feb 2026 14:33:46 +0000 Subject: [PATCH] feat: add device objects for all spines, leafs, and hosts --- data/02_devices.yml | 109 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 data/02_devices.yml diff --git a/data/02_devices.yml b/data/02_devices.yml new file mode 100644 index 0000000..4f74d32 --- /dev/null +++ b/data/02_devices.yml @@ -0,0 +1,109 @@ +--- +apiVersion: infrahub.app/v1 +kind: Object +spec: + kind: InfraDevice + data: + # ==================== SPINES ==================== + - name: spine1 + role: spine + platform: Arista EOS + asn: spine-as + router_id: "10.0.250.1/32" + mgmt_ip: "172.16.0.1/24" + + - name: spine2 + role: spine + platform: Arista EOS + asn: spine-as + router_id: "10.0.250.2/32" + mgmt_ip: "172.16.0.2/24" + + # ==================== VTEP1 - AS 65001 (L2 VXLAN) ==================== + - name: leaf1 + role: leaf + platform: Arista EOS + asn: vtep1-as + router_id: "10.0.250.11/32" + mgmt_ip: "172.16.0.25/24" + mlag_peer: leaf2 + + - name: leaf2 + role: leaf + platform: Arista EOS + asn: vtep1-as + router_id: "10.0.250.12/32" + mgmt_ip: "172.16.0.50/24" + mlag_peer: leaf1 + + # ==================== VTEP2 - AS 65002 (L3 VXLAN VRF gold) ==================== + - name: leaf3 + role: leaf + platform: Arista EOS + asn: vtep2-as + router_id: "10.0.250.13/32" + mgmt_ip: "172.16.0.27/24" + mlag_peer: leaf4 + + - name: leaf4 + role: leaf + platform: Arista EOS + asn: vtep2-as + router_id: "10.0.250.14/32" + mgmt_ip: "172.16.0.28/24" + mlag_peer: leaf3 + + # ==================== VTEP3 - AS 65003 (L2 VXLAN) ==================== + - name: leaf5 + role: leaf + platform: Arista EOS + asn: vtep3-as + router_id: "10.0.250.15/32" + mgmt_ip: "172.16.0.29/24" + mlag_peer: leaf6 + + - name: leaf6 + role: leaf + platform: Arista EOS + asn: vtep3-as + router_id: "10.0.250.16/32" + mgmt_ip: "172.16.0.30/24" + mlag_peer: leaf5 + + # ==================== VTEP4 - AS 65004 (L3 VXLAN VRF gold) ==================== + - name: leaf7 + role: leaf + platform: Arista EOS + asn: vtep4-as + router_id: "10.0.250.17/32" + mgmt_ip: "172.16.0.31/24" + mlag_peer: leaf8 + + - name: leaf8 + role: leaf + platform: Arista EOS + asn: vtep4-as + router_id: "10.0.250.18/32" + mgmt_ip: "172.16.0.32/24" + mlag_peer: leaf7 + + # ==================== HOSTS ==================== + - name: host1 + role: host + platform: Linux + mgmt_ip: "172.16.0.101/24" + + - name: host2 + role: host + platform: Linux + mgmt_ip: "172.16.0.102/24" + + - name: host3 + role: host + platform: Linux + mgmt_ip: "172.16.0.103/24" + + - name: host4 + role: host + platform: Linux + mgmt_ip: "172.16.0.104/24"