mirror of
https://github.com/systemd/systemd.git
synced 2024-12-31 21:18:09 +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.
|
# systemd-networkd when DHCPv4 6RD option is received.
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
|
Kind=sit
|
||||||
Name=6rd-*
|
Name=6rd-*
|
||||||
Type=sit
|
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
DHCPPrefixDelegation=yes
|
DHCPPrefixDelegation=yes
|
||||||
|
@ -16,8 +16,9 @@
|
|||||||
# details.
|
# details.
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
Virtualization=container
|
Kind=veth
|
||||||
Name=host0
|
Name=host0
|
||||||
|
Virtualization=container
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
DHCP=yes
|
DHCP=yes
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
# --network-zone switch. See systemd-nspawn(1) for details.
|
# --network-zone switch. See systemd-nspawn(1) for details.
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
|
Kind=veth
|
||||||
Name=vb-*
|
Name=vb-*
|
||||||
Driver=veth
|
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
KeepMaster=yes
|
KeepMaster=yes
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
# details.
|
# details.
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
|
Kind=veth
|
||||||
Name=ve-*
|
Name=ve-*
|
||||||
Driver=veth
|
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
# Default to using a /28 prefix, giving up to 13 addresses per container.
|
# 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.
|
# --network-zone= switch. See systemd-nspawn(1) for details.
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
|
Kind=bridge
|
||||||
Name=vz-*
|
Name=vz-*
|
||||||
Driver=bridge
|
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
# Default to using a /24 prefix, giving up to 253 addresses per virtual 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.
|
# configuration as ve-* to provide NAT/DHCP to VMs.
|
||||||
|
|
||||||
[Match]
|
[Match]
|
||||||
|
Kind=tun
|
||||||
Name=vt-*
|
Name=vt-*
|
||||||
Driver=tun
|
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
# Default to using a /28 prefix, giving up to 13 addresses per VM.
|
# Default to using a /28 prefix, giving up to 13 addresses per VM.
|
||||||
|
Loading…
Reference in New Issue
Block a user