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:
committed by
Jonathon Anderson
parent
ffe3dadd96
commit
7ffb07c54a
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user