{{define "content"}} {{$n := .Data.Network}}{{$new := .Data.IsNew}}{{$sel := .Data.Selected}}

{{if $new}}Add a client network{{else}}{{$n.Name}}{{end}}

{{if not $new}}

{{$n.CIDR}}

{{else}}
{{end}}
Network
IPv4 or IPv6 in CIDR notation. A bare address is treated as a single host.
Cancel
DNS Policies

Tick every policy that should apply to clients in this subnet. Policies are evaluated together: an allowlist in any of them overrides a blacklist match in any other.

{{if .Data.Policies}}
{{range .Data.Policies}} {{end}}
{{else}} {{template "empty" dict "Icon" "bi-sliders" "Title" "No policies exist yet" "Message" "A policy pairs a set of blacklists and allowlists with a block action. Create one, then come back and assign it here."}} {{end}}
{{end}}