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