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"
)
type DHCPv4 struct {
type DHCPv4Server struct {
Interface string
Pool []string
DefaultLeaseTime time.Duration

View file

@ -2,7 +2,7 @@ package service
import "time"
type DHCPv6 struct {
type DHCPv6Server struct {
Interface string
Pool []string
DefaultLeaseTime time.Duration

View file

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