1
0
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:
Yu Watanabe 2023-11-08 22:59:33 +09:00
parent 7f0dbde467
commit f139393dd2
6 changed files with 7 additions and 6 deletions

View File

@ -15,8 +15,8 @@
# systemd-networkd when DHCPv4 6RD option is received.
[Match]
Kind=sit
Name=6rd-*
Type=sit
[Network]
DHCPPrefixDelegation=yes

View File

@ -16,8 +16,9 @@
# details.
[Match]
Virtualization=container
Kind=veth
Name=host0
Virtualization=container
[Network]
DHCP=yes

View File

@ -16,8 +16,8 @@
# --network-zone switch. See systemd-nspawn(1) for details.
[Match]
Kind=veth
Name=vb-*
Driver=veth
[Network]
KeepMaster=yes

View File

@ -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.

View File

@ -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.

View File

@ -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.