f-73: metadata: network-config par VM, une entrée ethN par NIC visée par sa MAC, métrique croissante des NIC secondaires #73
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
c26606787e
commit
450d0c801a
5 changed files with 86 additions and 7 deletions
|
|
@ -1,4 +1,10 @@
|
|||
version: 2
|
||||
ethernets:
|
||||
eth0:
|
||||
{{- range $i, $nic := .NICs }}
|
||||
eth{{ $i }}:
|
||||
match:
|
||||
macaddress: "{{ $nic.MAC }}"
|
||||
dhcp4: true
|
||||
dhcp4-overrides:
|
||||
route-metric: {{ $nic.RouteMetric }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue