mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Add static route comment field
This commit is contained in:
parent
75322d4ece
commit
285c3a3436
2 changed files with 2 additions and 5 deletions
|
@ -208,17 +208,13 @@ export const editTypes: { [key: string]: { [key: string]: any } } = {
|
|||
'static_routes': {
|
||||
name: 'Static Route',
|
||||
idType: 'Number',
|
||||
validationSchema: toFormValidator(
|
||||
zod.object({
|
||||
name: zod.string(),
|
||||
}),
|
||||
),
|
||||
fields: {
|
||||
name: { is: 'TextBox', label: 'Name'},
|
||||
interface: { is: 'SingleSelect', label: 'Interface', props: { searchProvider: GetInterfaces} },
|
||||
gatway: { is: 'TextBox', label: 'Gateway'},
|
||||
destination: { is: 'TextBox', label: 'Destination'},
|
||||
metric: { is: 'NumberBox', label: 'Metric'},
|
||||
comment: { is: 'TextBox', label: 'Comment'},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -41,4 +41,5 @@ pub struct StaticRoute {
|
|||
pub gateway: IpAddr,
|
||||
pub destination: IpNet,
|
||||
pub metric: u64,
|
||||
pub comment: String,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue