]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: also check ID_NET_MANAGED_BY property on reconfigure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 09:05:46 +0000 (18:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Jun 2025 05:24:50 +0000 (14:24 +0900)
commit78f8d5ed71ecc16ad36d1c215d2d57433d127679
tree1d80d98af6888e752dffcdbe7930fb3560e90ce9
parenta954c1945bdccbec554a6e88ec60a524a415d295
network: also check ID_NET_MANAGED_BY property on reconfigure

Previously, the property was checked only when an uevent is received,
so even if an interface has ID_NET_MANAGED_BY property, the interface
will be configured by networkd when reconfiguration is triggered e.g.
when interface state is changed.

Follow-up for ba87a61d05d637be9f0b21707f7fe3b0a74c5a05.
Fixes #36997.
src/network/networkd-link.c
test/test-network/conf/11-dummy-unmanaged.link [new file with mode: 0644]
test/test-network/systemd-networkd-tests.py