mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
26 lines
No EOL
421 B
Cheetah
26 lines
No EOL
421 B
Cheetah
[Match]
|
|
{{- if eq .Type 0 }}
|
|
Name={{ .HardwareDevice }}
|
|
{{- else }}
|
|
Name={{ .Name }}
|
|
{{- end }}
|
|
|
|
[Network]
|
|
LLMNR=no
|
|
{{- if eq .AddressingMode 1 }}
|
|
Address={{ .Address }}
|
|
{{- else if eq .AddressingMode 2 }}
|
|
DHCP=yes
|
|
{{- end }}
|
|
{{- range .Vlans }}
|
|
VLAN={{ . }}
|
|
{{- end}}
|
|
|
|
{{- range .StaticRoutes }}
|
|
[Route]
|
|
Destination={{ .Destination }}
|
|
Gateway={{ .Gateway }}
|
|
{{- if ne .Metric 0 }}
|
|
Metric={{ .Metric }}
|
|
{{- end }}
|
|
{{end}} |