fix: migrate display_labels to display_label Jinja2 format in VLAN/VXLAN schema
Refs #41
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
---
|
---
|
||||||
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
|
||||||
@@ -15,9 +15,7 @@ nodes:
|
|||||||
- vlan_id__value
|
- vlan_id__value
|
||||||
order_by:
|
order_by:
|
||||||
- vlan_id__value
|
- vlan_id__value
|
||||||
display_labels:
|
display_label: "{{ vlan_id__value }} ({{ name__value }})"
|
||||||
- vlan_id__value
|
|
||||||
- name__value
|
|
||||||
attributes:
|
attributes:
|
||||||
- name: vlan_id
|
- name: vlan_id
|
||||||
kind: Number
|
kind: Number
|
||||||
@@ -63,9 +61,9 @@ 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
|
||||||
@@ -75,8 +73,7 @@ nodes:
|
|||||||
- vni__value
|
- vni__value
|
||||||
order_by:
|
order_by:
|
||||||
- vni__value
|
- vni__value
|
||||||
display_labels:
|
display_label: "{{ vni__value }}"
|
||||||
- vni__value
|
|
||||||
attributes:
|
attributes:
|
||||||
- name: vni
|
- name: vni
|
||||||
kind: Number
|
kind: Number
|
||||||
@@ -108,9 +105,9 @@ 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
|
||||||
@@ -118,8 +115,7 @@ nodes:
|
|||||||
icon: mdi--server-network-outline
|
icon: mdi--server-network-outline
|
||||||
human_friendly_id:
|
human_friendly_id:
|
||||||
- device__name__value
|
- device__name__value
|
||||||
display_labels:
|
display_label: "{{ source_address__value }}"
|
||||||
- source_address__value
|
|
||||||
attributes:
|
attributes:
|
||||||
- name: source_address
|
- name: source_address
|
||||||
kind: IPHost
|
kind: IPHost
|
||||||
@@ -151,16 +147,15 @@ 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_label: "{{ description__value }}"
|
||||||
- description__value
|
|
||||||
attributes:
|
attributes:
|
||||||
- name: description
|
- name: description
|
||||||
kind: Text
|
kind: Text
|
||||||
@@ -179,16 +174,15 @@ 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
|
||||||
display_labels:
|
display_label: "{{ route_distinguisher__value }}"
|
||||||
- route_distinguisher__value
|
|
||||||
attributes:
|
attributes:
|
||||||
- name: route_distinguisher
|
- name: route_distinguisher
|
||||||
kind: Text
|
kind: Text
|
||||||
|
|||||||
Reference in New Issue
Block a user