From 50cdb911a4affd85ec5f07e735a20c4fd09e76b3 Mon Sep 17 00:00:00 2001 From: Damien Date: Sun, 15 Feb 2026 16:01:45 +0100 Subject: [PATCH] =?UTF-8?q?fix(objects):=20reorder=20interfaces=20?= =?UTF-8?q?=E2=80=94=20LAG=20before=20Ethernet=20=E2=80=94=20refs=20#52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit InfraInterfaceEthernet references InfraInterfaceLag (lag field), so LAG interfaces must be created first within the same file. New order: Loopback → Lag → Ethernet → Vlan SVI --- objects/04-interfaces.yml | 192 +++++++++++++++++++------------------- 1 file changed, 96 insertions(+), 96 deletions(-) diff --git a/objects/04-interfaces.yml b/objects/04-interfaces.yml index 9cccb06..12ae0f7 100644 --- a/objects/04-interfaces.yml +++ b/objects/04-interfaces.yml @@ -83,6 +83,102 @@ spec: --- apiVersion: infrahub.app/v1 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: kind: InfraInterfaceEthernet data: @@ -396,102 +492,6 @@ spec: --- apiVersion: infrahub.app/v1 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: kind: InfraInterfaceVlan data: