InfraInterfaceVlan references InfraVLAN objects (06-vlans-vxlan.yml), so Vlan SVIs must load after VLANs. Similarly, Vlan IP addresses reference Vlan SVIs. Changes: - Extract InfraInterfaceVlan from 04 into 07-interface-vlans.yml - Extract Vlan SVI IPs from 05 into 08-ipam-vlans.yml - Rename 07-bgp→09, 08-vrfs→10, 09-mlag→11 - Update .infrahub.yml with new 11-file load order Load order: foundation → fabric → devices → interfaces (Lo/Lag/Eth) → ipam (Lo/Eth) → vlans-vxlan → interface-vlans → ipam-vlans → bgp → vrfs → mlag
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
# VRFs, Route Targets, VRF Device Assignments
|
|
# Depends on: 02-devices, 03-interfaces, 05-vlans-vxlan (VNI 100001)
|
|
#
|
|
# VRF gold is used on leaf3/4 (VLAN 34) and leaf7/8 (VLAN 78 + border)
|
|
# L3VNI 100001 for symmetric IRB
|
|
# Route targets: import/export evpn 1:100001
|
|
# Per-device RD: <router-id>:1
|
|
---
|
|
apiVersion: infrahub.app/v1
|
|
kind: Object
|
|
spec:
|
|
kind: InfraRouteTarget
|
|
data:
|
|
- target: "1:100001"
|
|
description: VRF gold EVPN route target
|
|
---
|
|
apiVersion: infrahub.app/v1
|
|
kind: Object
|
|
spec:
|
|
kind: InfraVRF
|
|
data:
|
|
- name: gold
|
|
description: VRF gold - L3 VXLAN with symmetric IRB
|
|
l3vni: ["100001"]
|
|
import_targets:
|
|
- ["1:100001"]
|
|
export_targets:
|
|
- ["1:100001"]
|
|
---
|
|
apiVersion: infrahub.app/v1
|
|
kind: Object
|
|
spec:
|
|
kind: InfraVRFDeviceAssignment
|
|
data:
|
|
- device: ["leaf3"]
|
|
vrf: ["gold"]
|
|
route_distinguisher: "10.0.250.13:1"
|
|
import_targets:
|
|
- ["1:100001"]
|
|
export_targets:
|
|
- ["1:100001"]
|
|
- device: ["leaf4"]
|
|
vrf: ["gold"]
|
|
route_distinguisher: "10.0.250.14:1"
|
|
import_targets:
|
|
- ["1:100001"]
|
|
export_targets:
|
|
- ["1:100001"]
|
|
- device: ["leaf7"]
|
|
vrf: ["gold"]
|
|
route_distinguisher: "10.0.250.17:1"
|
|
import_targets:
|
|
- ["1:100001"]
|
|
export_targets:
|
|
- ["1:100001"]
|
|
- device: ["leaf8"]
|
|
vrf: ["gold"]
|
|
route_distinguisher: "10.0.250.18:1"
|
|
import_targets:
|
|
- ["1:100001"]
|
|
export_targets:
|
|
- ["1:100001"]
|