diff --git a/docker/routlin-dash/data/page_content.json b/docker/routlin-dash/data/page_content.json index 07ca666..461f97f 100644 --- a/docker/routlin-dash/data/page_content.json +++ b/docker/routlin-dash/data/page_content.json @@ -1641,8 +1641,18 @@ "items": [ { "type": "field_row", - "cols": 2, + "cols": 3, "items": [ + { + "type": "field", + "label": "VLAN ID", + "name": "vlan_id", + "input_type": "number", + "min": 1, + "max": 4094, + "class": "vlan-id-input form-input-mono", + "hint": "Unique integer 1-4094. Sets the 802.1Q tag and interface name." + }, { "type": "field", "label": "VLAN Name", @@ -1662,7 +1672,7 @@ }, { "type": "field_row", - "cols": 3, + "cols": 2, "items": [ { "type": "field", @@ -1673,16 +1683,6 @@ "class": "vlan-iface-preview form-input-mono", "value": "" }, - { - "type": "field", - "label": "VLAN ID", - "name": "vlan_id", - "input_type": "number", - "min": 1, - "max": 4094, - "class": "vlan-id-input form-input-mono", - "hint": "Unique integer 1–4094. Sets the 802.1Q tag and interface name." - }, { "type": "field", "label": "VLAN Type", diff --git a/routlin/validation.py b/routlin/validation.py index 4188648..8f80a61 100644 --- a/routlin/validation.py +++ b/routlin/validation.py @@ -373,7 +373,7 @@ def validate_config(data): label = f"vlan '{name}' (id={vlan_id})" if vlan_id is None or not isinstance(vlan_id, int) or not (1 <= vlan_id <= 4094): - errors.append(f"vlan '{name}': vlan_id must be an integer 1–4094 (got {vlan_id!r}).") + errors.append(f"vlan '{name}': vlan_id must be an integer 1-4094 (got {vlan_id!r}).") if name in seen_names: errors.append(f"{label}: duplicate vlan name '{name}' "