modules: misc: Don't ignore the router setting

This mistake caused us to ignore the router setting when we wanted it!
Woops =D
This commit is contained in:
James Shubin
2024-12-03 00:43:32 -05:00
parent 4d30772b3b
commit 5764c977f1

View File

@@ -106,7 +106,7 @@ class network_manager_static($st) {
[connection]
id=${dev}
{{ if .uuid -}}
uuid=${uuid}
uuid={{ .uuid }}
{{ end -}}
type=ethernet
interface-name=${dev}
@@ -114,7 +114,7 @@ autoconnect=true
[ipv4]
{{ if .router -}}
address1=${ip}/${prefix},${router}
address1=${ip}/${prefix},{{ .router }}
{{ else -}}
address1=${ip}/${prefix}
{{ end -}}
@@ -125,12 +125,14 @@ method=manual
[ethernet]
{{ if .mac -}}
mac-address=${mac}
mac-address={{ .mac }}
{{ end -}}
"
$args = struct{
uuid => $uuid,
mac => $mac,
router => $router,
}
file "/etc/NetworkManager/system-connections/${dev}.nmconnection" {