fix(objects): wrap all relation references as HFID lists — refs #52
All relation values now use the HFID list-of-strings format required by infrahubctl: - Cardinality one: device: ["spine1"], platform: ["arista_eos"] - Cardinality many: devices: - ["leaf1"], networks: - ["10.0.250.1/32"] - Composite HFIDs unchanged: peer_group: ["10.0.250.1", "evpn"] Files modified: 02-fabric, 03-devices, 04-interfaces, 06-vlans-vxlan, 07-bgp, 08-vrfs, 09-mlag (05-ipam already correct).
This commit is contained in:
@@ -51,7 +51,7 @@ spec:
|
||||
- vni: 110040
|
||||
description: L2VNI for VLAN 40 (test-l2-vxlan)
|
||||
vni_type: l2vni
|
||||
vlan: "40"
|
||||
vlan: ["40"]
|
||||
- vni: 100001
|
||||
description: L3VNI for VRF gold
|
||||
vni_type: l3vni
|
||||
@@ -62,49 +62,49 @@ spec:
|
||||
kind: InfraVTEP
|
||||
data:
|
||||
# VTEP on leaf1 (shared VTEP1 IP 10.0.255.11)
|
||||
- device: leaf1
|
||||
- device: ["leaf1"]
|
||||
source_address: "10.0.255.11"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf1", "Loopback1"]
|
||||
# VTEP on leaf2 (shared VTEP1 IP 10.0.255.11)
|
||||
- device: leaf2
|
||||
- device: ["leaf2"]
|
||||
source_address: "10.0.255.11"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf2", "Loopback1"]
|
||||
# VTEP on leaf3 (shared VTEP2 IP 10.0.255.12)
|
||||
- device: leaf3
|
||||
- device: ["leaf3"]
|
||||
source_address: "10.0.255.12"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf3", "Loopback1"]
|
||||
# VTEP on leaf4 (shared VTEP2 IP 10.0.255.12)
|
||||
- device: leaf4
|
||||
- device: ["leaf4"]
|
||||
source_address: "10.0.255.12"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf4", "Loopback1"]
|
||||
# VTEP on leaf5 (shared VTEP3 IP 10.0.255.13)
|
||||
- device: leaf5
|
||||
- device: ["leaf5"]
|
||||
source_address: "10.0.255.13"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf5", "Loopback1"]
|
||||
# VTEP on leaf6 (shared VTEP3 IP 10.0.255.13)
|
||||
- device: leaf6
|
||||
- device: ["leaf6"]
|
||||
source_address: "10.0.255.13"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf6", "Loopback1"]
|
||||
# VTEP on leaf7 (shared VTEP4 IP 10.0.255.14)
|
||||
- device: leaf7
|
||||
- device: ["leaf7"]
|
||||
source_address: "10.0.255.14"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
source_interface: ["leaf7", "Loopback1"]
|
||||
# VTEP on leaf8 (shared VTEP4 IP 10.0.255.14)
|
||||
- device: leaf8
|
||||
- device: ["leaf8"]
|
||||
source_address: "10.0.255.14"
|
||||
udp_port: 4789
|
||||
learn_restrict: any
|
||||
@@ -116,21 +116,21 @@ spec:
|
||||
kind: InfraVlanVniMapping
|
||||
data:
|
||||
# VLAN 40 <-> VNI 110040 on leaf1/2/5/6 (L2 VXLAN leafs)
|
||||
- vtep: leaf1
|
||||
vlan: "40"
|
||||
vni: "110040"
|
||||
- vtep: ["leaf1"]
|
||||
vlan: ["40"]
|
||||
vni: ["110040"]
|
||||
description: "VLAN 40 <-> VNI 110040"
|
||||
- vtep: leaf2
|
||||
vlan: "40"
|
||||
vni: "110040"
|
||||
- vtep: ["leaf2"]
|
||||
vlan: ["40"]
|
||||
vni: ["110040"]
|
||||
description: "VLAN 40 <-> VNI 110040"
|
||||
- vtep: leaf5
|
||||
vlan: "40"
|
||||
vni: "110040"
|
||||
- vtep: ["leaf5"]
|
||||
vlan: ["40"]
|
||||
vni: ["110040"]
|
||||
description: "VLAN 40 <-> VNI 110040"
|
||||
- vtep: leaf6
|
||||
vlan: "40"
|
||||
vni: "110040"
|
||||
- vtep: ["leaf6"]
|
||||
vlan: ["40"]
|
||||
vni: ["110040"]
|
||||
description: "VLAN 40 <-> VNI 110040"
|
||||
---
|
||||
apiVersion: infrahub.app/v1
|
||||
@@ -140,27 +140,27 @@ spec:
|
||||
data:
|
||||
# EVPN instance for VLAN 40 on L2 VXLAN leafs
|
||||
# leaf1: rd 65001:110040, rt both 40:110040
|
||||
- device: leaf1
|
||||
vlan: "40"
|
||||
- device: ["leaf1"]
|
||||
vlan: ["40"]
|
||||
route_distinguisher: "65001:110040"
|
||||
route_target_import: "40:110040"
|
||||
route_target_export: "40:110040"
|
||||
redistribute_learned: true
|
||||
- device: leaf2
|
||||
vlan: "40"
|
||||
- device: ["leaf2"]
|
||||
vlan: ["40"]
|
||||
route_distinguisher: "65001:110040"
|
||||
route_target_import: "40:110040"
|
||||
route_target_export: "40:110040"
|
||||
redistribute_learned: true
|
||||
# leaf5/6: rd 65003:110040, rt both 40:110040
|
||||
- device: leaf5
|
||||
vlan: "40"
|
||||
- device: ["leaf5"]
|
||||
vlan: ["40"]
|
||||
route_distinguisher: "65003:110040"
|
||||
route_target_import: "40:110040"
|
||||
route_target_export: "40:110040"
|
||||
redistribute_learned: true
|
||||
- device: leaf6
|
||||
vlan: "40"
|
||||
- device: ["leaf6"]
|
||||
vlan: ["40"]
|
||||
route_distinguisher: "65003:110040"
|
||||
route_target_import: "40:110040"
|
||||
route_target_export: "40:110040"
|
||||
|
||||
Reference in New Issue
Block a user