{{define "content"}} {{with .Data}} {{$e := .Errors}}
{{range .Interfaces}} {{range .Devices}}
System {{with index $e "hostName"}}{{.}}{{end}}
Interfaces {{range .Devices}}{{end}}
InterfaceKindUsed as
{{.Name}}{{.Kind}}{{if .Role}}{{.Role}}{{else}}unused{{end}}

A VLAN is written interface.id, for example enp2s0.1001; naming one below creates it.

Uplink (WAN) {{with index $e "wan.interface"}}{{.}}{{end}}

PPPoE only:

{{with index $e "wan.pppoe.username"}}{{.}}{{end}} {{with index $e "wan.pppoe.password"}}{{.}}{{end}}
LANs {{with index $e "lans"}}

{{.}}

{{end}} {{range $i, $l := .Form.LANs}} {{range $f := list "name" "interface" "vlan" "address" "prefix" "poolStart" "poolEnd"}}{{with index $e (printf "lans[%d].%s" $i $f)}}{{end}}{{end}} {{end}}
NameInterfaceVLANAddressPrefixInternet accessIPv6DHCPPool startPool endRemove
{{if $l.Name}}{{end}}
{{$f}}: {{.}}

Fill in the last row to add a LAN. Other LAN settings (zones, a fixed IPv6 address) are kept; edit them under Advanced.

{{end}} {{end}}