mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
network: use Kind= instead of Driver=
networkd ignores errors in reading driver through ethtool. The kind of network interface is retrieved through netlink, and networkd checks checks many failures. So, using Kind= should be safer. No functional change, just for safety.
This commit is contained in:
parent
7f0dbde467
commit
f139393dd2
@ -15,8 +15,8 @@
|
||||
# systemd-networkd when DHCPv4 6RD option is received.
|
||||
|
||||
[Match]
|
||||
Kind=sit
|
||||
Name=6rd-*
|
||||
Type=sit
|
||||
|
||||
[Network]
|
||||
DHCPPrefixDelegation=yes
|
||||
|
@ -16,8 +16,9 @@
|
||||
# details.
|
||||
|
||||
[Match]
|
||||
Virtualization=container
|
||||
Kind=veth
|
||||
Name=host0
|
||||
Virtualization=container
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
|
@ -16,8 +16,8 @@
|
||||
# --network-zone switch. See systemd-nspawn(1) for details.
|
||||
|
||||
[Match]
|
||||
Kind=veth
|
||||
Name=vb-*
|
||||
Driver=veth
|
||||
|
||||
[Network]
|
||||
KeepMaster=yes
|
||||
|
@ -16,8 +16,8 @@
|
||||
# details.
|
||||
|
||||
[Match]
|
||||
Kind=veth
|
||||
Name=ve-*
|
||||
Driver=veth
|
||||
|
||||
[Network]
|
||||
# Default to using a /28 prefix, giving up to 13 addresses per container.
|
||||
|
@ -15,8 +15,8 @@
|
||||
# --network-zone= switch. See systemd-nspawn(1) for details.
|
||||
|
||||
[Match]
|
||||
Kind=bridge
|
||||
Name=vz-*
|
||||
Driver=bridge
|
||||
|
||||
[Network]
|
||||
# Default to using a /24 prefix, giving up to 253 addresses per virtual network.
|
||||
|
@ -15,8 +15,8 @@
|
||||
# configuration as ve-* to provide NAT/DHCP to VMs.
|
||||
|
||||
[Match]
|
||||
Kind=tun
|
||||
Name=vt-*
|
||||
Driver=tun
|
||||
|
||||
[Network]
|
||||
# Default to using a /28 prefix, giving up to 13 addresses per VM.
|
||||
|
Loading…
Reference in New Issue
Block a user