{{define "mdns.html"}}
{{template "base" .}}
{{end}}
{{define "content"}}
{{if .Error}}
{{.Error}}
{{end}}
| Status |
{{.EnabledText}}
|
| Domain | {{.Domain}} |
{{if .Allow}}| Allow | {{.Allow}} |
{{end}}
{{if .Deny}}| Deny | {{.Deny}} |
{{end}}
{{if .Reflector}}
| Reflector |
Active{{if .SvcFilter}} — filter: {{.SvcFilter}}{{end}} |
{{end}}
Neighbors
{{if .Neighbors}}
| Hostname |
Address |
Last Seen |
Services |
{{range .Neighbors}}
{{$host := .Hostname}}
| {{if .ExtraAddrs}} {{end}}{{.Hostname}} |
{{.PrimaryAddr}} |
{{.LastSeen}} |
{{range $i, $svc := .Services}}{{if $i}} {{end}}{{if $svc.URL}}{{$svc.Label}}{{else}}{{$svc.Label}}({{$svc.Port}}){{end}}{{end}} |
{{range .ExtraAddrs}}
{{end}}
{{end}}
{{else}}
No mDNS neighbors discovered.
{{end}}
{{end}}