fix vlan creation definition

This commit is contained in:
Samuel Lorch 2024-01-14 23:10:06 +01:00
parent 4f4f125796
commit b213b81253

View file

@ -149,8 +149,8 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
'vlan': {
display: 'VLAN',
fields: {
vlan_parent: { is: 'SingleSelect', label: 'VLAN Parent', props: { searchProvider: GetInterfaces}},
vlan_id: { is: 'NumberBox', label: 'VLAN ID', props: { min: 1, max: 4094 }},
parent: { is: 'SingleSelect', label: 'VLAN Parent', props: { searchProvider: GetInterfaces}},
id: { is: 'NumberBox', label: 'VLAN ID', props: { min: 1, max: 4094 }},
},
},
'bond': {
@ -185,7 +185,7 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
fields: {
name: { is: 'TextBox', label: 'Name'},
interface: { is: 'SingleSelect', label: 'Interface', props: { searchProvider: GetInterfaces} },
gatway: { is: 'TextBox', label: 'Gateway'},
gateway: { is: 'TextBox', label: 'Gateway'},
destination: { is: 'TextBox', label: 'Destination'},
metric: { is: 'NumberBox', label: 'Metric'},
comment: { is: 'MultilineTextBox', label: 'Comment'},