mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +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"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DHCPv4 struct {
|
type DHCPv4Server struct {
|
||||||
Interface string
|
Interface string
|
||||||
Pool []string
|
Pool []string
|
||||||
DefaultLeaseTime time.Duration
|
DefaultLeaseTime time.Duration
|
|
@ -2,7 +2,7 @@ package service
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
type DHCPv6 struct {
|
type DHCPv6Server struct {
|
||||||
Interface string
|
Interface string
|
||||||
Pool []string
|
Pool []string
|
||||||
DefaultLeaseTime time.Duration
|
DefaultLeaseTime time.Duration
|
|
@ -1,6 +1,6 @@
|
||||||
package service
|
package service
|
||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
DHCPv4 []DHCPv4 `json:"dhcp_v4" validate:"required,dive"`
|
DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers" validate:"required,dive"`
|
||||||
DHCPv6 []DHCPv6 `json:"dhcp_v6" validate:"required,dive"`
|
DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers" validate:"required,dive"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue