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:
@@ -19,10 +19,10 @@ spec:
|
||||
dual_primary_delay: 10
|
||||
dual_primary_action: errdisable
|
||||
devices:
|
||||
- leaf1
|
||||
- leaf2
|
||||
peer_vlan: "4090"
|
||||
ibgp_vlan: "4091"
|
||||
- ["leaf1"]
|
||||
- ["leaf2"]
|
||||
peer_vlan: ["4090"]
|
||||
ibgp_vlan: ["4091"]
|
||||
# MLAG pair 2: leaf3 + leaf4
|
||||
- domain_id: leafs-3-4
|
||||
description: MLAG domain for leaf3/leaf4 pair
|
||||
@@ -32,10 +32,10 @@ spec:
|
||||
dual_primary_delay: 10
|
||||
dual_primary_action: errdisable
|
||||
devices:
|
||||
- leaf3
|
||||
- leaf4
|
||||
peer_vlan: "4090"
|
||||
ibgp_vlan: "4091"
|
||||
- ["leaf3"]
|
||||
- ["leaf4"]
|
||||
peer_vlan: ["4090"]
|
||||
ibgp_vlan: ["4091"]
|
||||
# MLAG pair 3: leaf5 + leaf6
|
||||
- domain_id: leafs-5-6
|
||||
description: MLAG domain for leaf5/leaf6 pair
|
||||
@@ -45,10 +45,10 @@ spec:
|
||||
dual_primary_delay: 10
|
||||
dual_primary_action: errdisable
|
||||
devices:
|
||||
- leaf5
|
||||
- leaf6
|
||||
peer_vlan: "4090"
|
||||
ibgp_vlan: "4091"
|
||||
- ["leaf5"]
|
||||
- ["leaf6"]
|
||||
peer_vlan: ["4090"]
|
||||
ibgp_vlan: ["4091"]
|
||||
# MLAG pair 4: leaf7 + leaf8
|
||||
- domain_id: leafs-7-8
|
||||
description: MLAG domain for leaf7/leaf8 pair
|
||||
@@ -58,10 +58,10 @@ spec:
|
||||
dual_primary_delay: 10
|
||||
dual_primary_action: errdisable
|
||||
devices:
|
||||
- leaf7
|
||||
- leaf8
|
||||
peer_vlan: "4090"
|
||||
ibgp_vlan: "4091"
|
||||
- ["leaf7"]
|
||||
- ["leaf8"]
|
||||
peer_vlan: ["4090"]
|
||||
ibgp_vlan: ["4091"]
|
||||
---
|
||||
apiVersion: infrahub.app/v1
|
||||
kind: Object
|
||||
@@ -69,64 +69,64 @@ spec:
|
||||
kind: InfraMlagPeerConfig
|
||||
data:
|
||||
# Leaf1 MLAG peer config
|
||||
- device: leaf1
|
||||
mlag_domain: leafs-1-2
|
||||
- device: ["leaf1"]
|
||||
mlag_domain: ["leafs-1-2"]
|
||||
local_interface_ip: "10.0.199.254/31"
|
||||
peer_address: "10.0.199.255"
|
||||
heartbeat_peer_ip: "172.16.0.50"
|
||||
local_interface: ["leaf1", "Vlan4090"]
|
||||
peer_link: ["leaf1", "Port-Channel999"]
|
||||
# Leaf2 MLAG peer config
|
||||
- device: leaf2
|
||||
mlag_domain: leafs-1-2
|
||||
- device: ["leaf2"]
|
||||
mlag_domain: ["leafs-1-2"]
|
||||
local_interface_ip: "10.0.199.255/31"
|
||||
peer_address: "10.0.199.254"
|
||||
heartbeat_peer_ip: "172.16.0.25"
|
||||
local_interface: ["leaf2", "Vlan4090"]
|
||||
peer_link: ["leaf2", "Port-Channel999"]
|
||||
# Leaf3 MLAG peer config
|
||||
- device: leaf3
|
||||
mlag_domain: leafs-3-4
|
||||
- device: ["leaf3"]
|
||||
mlag_domain: ["leafs-3-4"]
|
||||
local_interface_ip: "10.0.199.252/31"
|
||||
peer_address: "10.0.199.253"
|
||||
heartbeat_peer_ip: "172.16.0.28"
|
||||
local_interface: ["leaf3", "Vlan4090"]
|
||||
peer_link: ["leaf3", "Port-Channel999"]
|
||||
# Leaf4 MLAG peer config
|
||||
- device: leaf4
|
||||
mlag_domain: leafs-3-4
|
||||
- device: ["leaf4"]
|
||||
mlag_domain: ["leafs-3-4"]
|
||||
local_interface_ip: "10.0.199.253/31"
|
||||
peer_address: "10.0.199.252"
|
||||
heartbeat_peer_ip: "172.16.0.27"
|
||||
local_interface: ["leaf4", "Vlan4090"]
|
||||
peer_link: ["leaf4", "Port-Channel999"]
|
||||
# Leaf5 MLAG peer config
|
||||
- device: leaf5
|
||||
mlag_domain: leafs-5-6
|
||||
- device: ["leaf5"]
|
||||
mlag_domain: ["leafs-5-6"]
|
||||
local_interface_ip: "10.0.199.250/31"
|
||||
peer_address: "10.0.199.251"
|
||||
heartbeat_peer_ip: "172.16.0.30"
|
||||
local_interface: ["leaf5", "Vlan4090"]
|
||||
peer_link: ["leaf5", "Port-Channel999"]
|
||||
# Leaf6 MLAG peer config
|
||||
- device: leaf6
|
||||
mlag_domain: leafs-5-6
|
||||
- device: ["leaf6"]
|
||||
mlag_domain: ["leafs-5-6"]
|
||||
local_interface_ip: "10.0.199.251/31"
|
||||
peer_address: "10.0.199.250"
|
||||
heartbeat_peer_ip: "172.16.0.29"
|
||||
local_interface: ["leaf6", "Vlan4090"]
|
||||
peer_link: ["leaf6", "Port-Channel999"]
|
||||
# Leaf7 MLAG peer config
|
||||
- device: leaf7
|
||||
mlag_domain: leafs-7-8
|
||||
- device: ["leaf7"]
|
||||
mlag_domain: ["leafs-7-8"]
|
||||
local_interface_ip: "10.0.199.248/31"
|
||||
peer_address: "10.0.199.249"
|
||||
heartbeat_peer_ip: "172.16.0.32"
|
||||
local_interface: ["leaf7", "Vlan4090"]
|
||||
peer_link: ["leaf7", "Port-Channel999"]
|
||||
# Leaf8 MLAG peer config
|
||||
- device: leaf8
|
||||
mlag_domain: leafs-7-8
|
||||
- device: ["leaf8"]
|
||||
mlag_domain: ["leafs-7-8"]
|
||||
local_interface_ip: "10.0.199.249/31"
|
||||
peer_address: "10.0.199.248"
|
||||
heartbeat_peer_ip: "172.16.0.31"
|
||||
|
||||
Reference in New Issue
Block a user