mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Add Server to dhcp definitions
This commit is contained in:
parent
43495f5507
commit
1cf1fe7a2e
3 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
type DHCPv4 struct {
|
||||
type DHCPv4Server struct {
|
||||
Interface string
|
||||
Pool []string
|
||||
DefaultLeaseTime time.Duration
|
|
@ -2,7 +2,7 @@ package service
|
|||
|
||||
import "time"
|
||||
|
||||
type DHCPv6 struct {
|
||||
type DHCPv6Server struct {
|
||||
Interface string
|
||||
Pool []string
|
||||
DefaultLeaseTime time.Duration
|
|
@ -1,6 +1,6 @@
|
|||
package service
|
||||
|
||||
type Service struct {
|
||||
DHCPv4 []DHCPv4 `json:"dhcp_v4" validate:"required,dive"`
|
||||
DHCPv6 []DHCPv6 `json:"dhcp_v6" validate:"required,dive"`
|
||||
DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers" validate:"required,dive"`
|
||||
DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers" validate:"required,dive"`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue