]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Add comprehensive tests for MultiPathRoute device-only syntax 39742/head
authorChris Down <chris@chrisdown.name>
Sat, 15 Nov 2025 17:15:47 +0000 (01:15 +0800)
committerChris Down <chris@chrisdown.name>
Fri, 28 Nov 2025 11:09:15 +0000 (19:09 +0800)
commit23d02f63277c44137fa03af498c4976262df38d2
tree8770ff6b5b07d0e7c76067b147c7a8210d1647cd
parent645b709a383a475fae434acb0b4eb0558ecd2b15
test: Add comprehensive tests for MultiPathRoute device-only syntax

Add unit tests for config_parse_multipath_route() covering the new
device-only nexthop syntax (@device). Tests verify basic parsing of
device-only routes, gateway with device routes, gateway-only routes,
interface index handling, etc. Also some checks on new hash/duplicate
semantics.

Also add an integration test to verify device-only multipath routes are
correctly installed in the kernel routing table.
src/network/test-networkd-conf.c
test/test-network/conf/25-route-static.network
test/test-network/systemd-networkd-tests.py