Add Server to dhcp definitions

This commit is contained in:
Samuel Lorch 2023-04-13 18:21:03 +02:00
parent 43495f5507
commit 1cf1fe7a2e
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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"`
} }