diff --git a/objects/07-vrfs.yml b/objects/07-vrfs.yml new file mode 100644 index 0000000..fac035d --- /dev/null +++ b/objects/07-vrfs.yml @@ -0,0 +1,62 @@ +# 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: :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"