feat: add broadcast field to interfaces

This commit is contained in:
2026-03-01 11:13:13 +01:00
parent 58ef0dec63
commit 8b787a99c2
5 changed files with 29 additions and 2 deletions

View File

@@ -85,11 +85,13 @@ export default function ConfigDetail() {
label: 'Zone',
render: (r: AnyEntity) => r['zone_id'] == null ? '-' : (zones.find((z) => z.id === r['zone_id'])?.name ?? String(r['zone_id'])),
},
{ key: 'broadcast' as const, label: 'Broadcast' },
{ key: 'options' as const, label: 'Options' },
] as Column<AnyEntity>[],
fields: [
{ name: 'name', label: 'Interface Name', required: true },
{ name: 'zone_id', label: 'Zone', type: 'select' as const, options: [{ value: '', label: '- (no zone)' }, ...zoneOptions] },
{ name: 'broadcast', label: 'Broadcast' },
{ name: 'options', label: 'Options' },
] as FieldDef[],
},