fix(objects): reorder interfaces — LAG before Ethernet — refs #52
InfraInterfaceEthernet references InfraInterfaceLag (lag field), so LAG interfaces must be created first within the same file. New order: Loopback → Lag → Ethernet → Vlan SVI
This commit is contained in:
@@ -83,6 +83,102 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: infrahub.app/v1
|
apiVersion: infrahub.app/v1
|
||||||
kind: Object
|
kind: Object
|
||||||
|
spec:
|
||||||
|
kind: InfraInterfaceLag
|
||||||
|
data:
|
||||||
|
# Port-Channel999 — MLAG peer-link (all leafs)
|
||||||
|
- device: ["leaf1"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf2"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf3"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf4"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf5"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf6"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf7"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
- device: ["leaf8"]
|
||||||
|
name: Port-Channel999
|
||||||
|
description: MLAG Peer
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
# Port-Channel1 — Host-facing MLAG LAG (all leafs)
|
||||||
|
- device: ["leaf1"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host1
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf2"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host1
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf3"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host2
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf4"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host2
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf5"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host3
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf6"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host3
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf7"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host4
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
- device: ["leaf8"]
|
||||||
|
name: Port-Channel1
|
||||||
|
description: host4
|
||||||
|
enabled: true
|
||||||
|
lacp_mode: active
|
||||||
|
mlag_id: 1
|
||||||
|
---
|
||||||
|
apiVersion: infrahub.app/v1
|
||||||
|
kind: Object
|
||||||
spec:
|
spec:
|
||||||
kind: InfraInterfaceEthernet
|
kind: InfraInterfaceEthernet
|
||||||
data:
|
data:
|
||||||
@@ -396,102 +492,6 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: infrahub.app/v1
|
apiVersion: infrahub.app/v1
|
||||||
kind: Object
|
kind: Object
|
||||||
spec:
|
|
||||||
kind: InfraInterfaceLag
|
|
||||||
data:
|
|
||||||
# Port-Channel999 — MLAG peer-link (all leafs)
|
|
||||||
- device: ["leaf1"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf2"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf3"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf4"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf5"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf6"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf7"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
- device: ["leaf8"]
|
|
||||||
name: Port-Channel999
|
|
||||||
description: MLAG Peer
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
# Port-Channel1 — Host-facing MLAG LAG (all leafs)
|
|
||||||
- device: ["leaf1"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host1
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf2"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host1
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf3"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host2
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf4"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host2
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf5"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host3
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf6"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host3
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf7"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host4
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
- device: ["leaf8"]
|
|
||||||
name: Port-Channel1
|
|
||||||
description: host4
|
|
||||||
enabled: true
|
|
||||||
lacp_mode: active
|
|
||||||
mlag_id: 1
|
|
||||||
---
|
|
||||||
apiVersion: infrahub.app/v1
|
|
||||||
kind: Object
|
|
||||||
spec:
|
spec:
|
||||||
kind: InfraInterfaceVlan
|
kind: InfraInterfaceVlan
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user