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:
@@ -21,42 +21,42 @@ spec:
|
||||
data:
|
||||
- name: gold
|
||||
description: VRF gold - L3 VXLAN with symmetric IRB
|
||||
l3vni: "100001"
|
||||
l3vni: ["100001"]
|
||||
import_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
export_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
---
|
||||
apiVersion: infrahub.app/v1
|
||||
kind: Object
|
||||
spec:
|
||||
kind: InfraVRFDeviceAssignment
|
||||
data:
|
||||
- device: leaf3
|
||||
vrf: gold
|
||||
- device: ["leaf3"]
|
||||
vrf: ["gold"]
|
||||
route_distinguisher: "10.0.250.13:1"
|
||||
import_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
export_targets:
|
||||
- "1:100001"
|
||||
- device: leaf4
|
||||
vrf: gold
|
||||
- ["1:100001"]
|
||||
- device: ["leaf4"]
|
||||
vrf: ["gold"]
|
||||
route_distinguisher: "10.0.250.14:1"
|
||||
import_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
export_targets:
|
||||
- "1:100001"
|
||||
- device: leaf7
|
||||
vrf: gold
|
||||
- ["1:100001"]
|
||||
- device: ["leaf7"]
|
||||
vrf: ["gold"]
|
||||
route_distinguisher: "10.0.250.17:1"
|
||||
import_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
export_targets:
|
||||
- "1:100001"
|
||||
- device: leaf8
|
||||
vrf: gold
|
||||
- ["1:100001"]
|
||||
- device: ["leaf8"]
|
||||
vrf: ["gold"]
|
||||
route_distinguisher: "10.0.250.18:1"
|
||||
import_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
export_targets:
|
||||
- "1:100001"
|
||||
- ["1:100001"]
|
||||
|
||||
Reference in New Issue
Block a user