Add NTP Server Config

This commit is contained in:
Samuel Lorch 2023-04-24 19:15:10 +02:00
parent c961387776
commit 53598e5d78
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,6 @@
package service
type NTPServer struct {
Interface string `json:"interface"`
Comment string `json:"comment,omitempty"`
}

View file

@ -4,4 +4,5 @@ type Service struct {
DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers" validate:"required,dive"`
DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers" validate:"required,dive"`
DNSServers []DNSServer `json:"dns_servers" validate:"required,dive"`
NTPServers []NTPServer `json:"ntp_servers" validate:"required,dive"`
}