fix(schema): display_labels must only reference local attributes in vlan_vxlan.yml

This commit is contained in:
2026-02-06 13:08:30 +00:00
parent 95bd2ee6c8
commit 2ca08a4f41

View File

@@ -3,15 +3,16 @@
---
version: "1.0"
nodes:
# =============================================================================
# ==========================================================================
# VLAN
# =============================================================================
# ==========================================================================
- name: VLAN
namespace: Infra
description: Virtual LAN configuration
label: VLAN
icon: mdi--lan-connect
default_filter: vlan_id__value
human_friendly_id:
- vlan_id__value
order_by:
- vlan_id__value
display_labels:
@@ -62,15 +63,16 @@ nodes:
cardinality: one
optional: true
# =============================================================================
# ==========================================================================
# VNI (VXLAN Network Identifier)
# =============================================================================
# ==========================================================================
- name: VNI
namespace: Infra
description: VXLAN Network Identifier
label: VNI
icon: mdi--tunnel-outline
default_filter: vni__value
human_friendly_id:
- vni__value
order_by:
- vni__value
display_labels:
@@ -106,17 +108,18 @@ nodes:
optional: true
description: Associated VRF for L3VNI
# =============================================================================
# ==========================================================================
# VTEP (VXLAN Tunnel Endpoint)
# =============================================================================
# ==========================================================================
- name: VTEP
namespace: Infra
description: VXLAN Tunnel Endpoint configuration
label: VTEP
icon: mdi--server-network-outline
default_filter: source_address__value
display_labels:
human_friendly_id:
- device__name__value
display_labels:
- source_address__value
attributes:
- name: source_address
kind: IPHost
@@ -147,17 +150,21 @@ nodes:
cardinality: many
kind: Component
# =============================================================================
# ==========================================================================
# VLAN to VNI Mapping (per-device)
# =============================================================================
# ==========================================================================
- name: VlanVniMapping
namespace: Infra
description: VLAN to VNI mapping on a VTEP
label: VLAN-VNI Mapping
icon: mdi--swap-horizontal
display_labels:
- vlan__vlan_id__value
- vni__vni__value
- description__value
attributes:
- name: description
kind: Text
optional: true
description: "Mapping description (e.g., VLAN 40 <-> VNI 10040)"
relationships:
- name: vtep
peer: InfraVTEP
@@ -170,17 +177,16 @@ nodes:
peer: InfraVNI
cardinality: one
# =============================================================================
# ==========================================================================
# EVPN Instance (per VLAN)
# =============================================================================
# ==========================================================================
- name: EVPNInstance
namespace: Infra
description: EVPN instance configuration (route targets for L2 extension)
label: EVPN Instance
icon: mdi--cloud-sync
default_filter: vlan__vlan_id__value
display_labels:
- vlan__vlan_id__value
- route_distinguisher__value
attributes:
- name: route_distinguisher
kind: Text