Change netplan overlay to use netdev device names instead of the netdev name in bonds

Signed-off-by: Tim Weiers <56134890+tweiers@users.noreply.github.com>
This commit is contained in:
Tim Weiers
2025-09-16 20:10:10 +00:00
committed by Jonathon Anderson
parent ffe3dadd96
commit 7ffb07c54a

View File

@@ -48,9 +48,9 @@ network:
mode: {{ default "balance-rr" $netdev.Tags.mode }}
mii-monitor-interval: {{ default 100 $netdev.Tags.miimon }}
{{- $interfaces := list }}
{{- range $ifacename, $iface := $NetDevs }}
{{- if eq $iface.Tags.master $devname }}
{{- $interfaces = append $interfaces $ifacename }}
{{- range $iface := $NetDevs }}
{{- if eq $iface.Tags.master $netdev.Device }}
{{- $interfaces = append $interfaces $iface.Device }}
{{- end }}
{{- end }}
{{- if $interfaces }}