From b9b15f3beb7436b9584380150efe5807aa666033 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sat, 7 Feb 2026 09:18:11 +0000 Subject: [PATCH] fix: migrate display_labels to display_label Jinja2 format in VLAN/VXLAN schema Refs #41 --- schemas/vlan_vxlan.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/schemas/vlan_vxlan.yml b/schemas/vlan_vxlan.yml index feef0c1..dc81548 100644 --- a/schemas/vlan_vxlan.yml +++ b/schemas/vlan_vxlan.yml @@ -3,9 +3,9 @@ --- version: "1.0" nodes: - # ========================================================================== + # =================================================================== # VLAN - # ========================================================================== + # =================================================================== - name: VLAN namespace: Infra description: Virtual LAN configuration @@ -15,9 +15,7 @@ nodes: - vlan_id__value order_by: - vlan_id__value - display_labels: - - vlan_id__value - - name__value + display_label: "{{ vlan_id__value }} ({{ name__value }})" attributes: - name: vlan_id kind: Number @@ -63,9 +61,9 @@ nodes: cardinality: one optional: true - # ========================================================================== + # =================================================================== # VNI (VXLAN Network Identifier) - # ========================================================================== + # =================================================================== - name: VNI namespace: Infra description: VXLAN Network Identifier @@ -75,8 +73,7 @@ nodes: - vni__value order_by: - vni__value - display_labels: - - vni__value + display_label: "{{ vni__value }}" attributes: - name: vni kind: Number @@ -108,9 +105,9 @@ nodes: optional: true description: Associated VRF for L3VNI - # ========================================================================== + # =================================================================== # VTEP (VXLAN Tunnel Endpoint) - # ========================================================================== + # =================================================================== - name: VTEP namespace: Infra description: VXLAN Tunnel Endpoint configuration @@ -118,8 +115,7 @@ nodes: icon: mdi--server-network-outline human_friendly_id: - device__name__value - display_labels: - - source_address__value + display_label: "{{ source_address__value }}" attributes: - name: source_address kind: IPHost @@ -151,16 +147,15 @@ 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: - - description__value + display_label: "{{ description__value }}" attributes: - name: description kind: Text @@ -179,16 +174,15 @@ 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 - display_labels: - - route_distinguisher__value + display_label: "{{ route_distinguisher__value }}" attributes: - name: route_distinguisher kind: Text