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 }}
|
mode: {{ default "balance-rr" $netdev.Tags.mode }}
|
||||||
mii-monitor-interval: {{ default 100 $netdev.Tags.miimon }}
|
mii-monitor-interval: {{ default 100 $netdev.Tags.miimon }}
|
||||||
{{- $interfaces := list }}
|
{{- $interfaces := list }}
|
||||||
{{- range $ifacename, $iface := $NetDevs }}
|
{{- range $iface := $NetDevs }}
|
||||||
{{- if eq $iface.Tags.master $devname }}
|
{{- if eq $iface.Tags.master $netdev.Device }}
|
||||||
{{- $interfaces = append $interfaces $ifacename }}
|
{{- $interfaces = append $interfaces $iface.Device }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $interfaces }}
|
{{- if $interfaces }}
|
||||||
|
|||||||
Reference in New Issue
Block a user