mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
network: add .link file to match 80-namespace.network
This file makes clear the interface shall be owned by networkd. This does what658169e6d3
did for nspawn's regular devices for the devices defined through8aee931e7a
too.
This commit is contained in:
parent
0f5a529217
commit
6bd675a659
24
network/80-namespace-ns.link
Normal file
24
network/80-namespace-ns.link
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
#
|
||||||
|
# This config file is installed as part of systemd.
|
||||||
|
# It may be freely copied and edited (following the MIT No Attribution license).
|
||||||
|
#
|
||||||
|
# To make local modifications, one of the following methods may be used:
|
||||||
|
# 1. add a drop-in file that extends this file by creating the
|
||||||
|
# /etc/systemd/network/80-container-ve.link.d/ directory and creating a
|
||||||
|
# new .conf file there.
|
||||||
|
# 2. copy this file into /etc/systemd/network/ or one of the other paths checked
|
||||||
|
# by systemd-udevd and edit it there.
|
||||||
|
# This file should not be edited in place, because it'll be overwritten on upgrades.
|
||||||
|
|
||||||
|
# This network file matches the host-side of the virtual Ethernet link
|
||||||
|
# created by systemd-nsresourced's network support. See systemd-nsresourced(1) for
|
||||||
|
# details.
|
||||||
|
|
||||||
|
[Match]
|
||||||
|
Kind=veth
|
||||||
|
OriginalName=ns-*
|
||||||
|
|
||||||
|
[Link]
|
||||||
|
NamePolicy=keep
|
||||||
|
Property=ID_NET_MANAGED_BY=io.systemd.Network
|
@ -12,6 +12,7 @@ if conf.get('ENABLE_NETWORKD') == 1
|
|||||||
'80-container-vz.network',
|
'80-container-vz.network',
|
||||||
'80-container-vz.link',
|
'80-container-vz.link',
|
||||||
'80-namespace-ns.network',
|
'80-namespace-ns.network',
|
||||||
|
'80-namespace-ns.link',
|
||||||
'80-vm-vt.network',
|
'80-vm-vt.network',
|
||||||
'80-vm-vt.link',
|
'80-vm-vt.link',
|
||||||
'80-wifi-adhoc.network',
|
'80-wifi-adhoc.network',
|
||||||
|
Loading…
Reference in New Issue
Block a user