test-network: add test case for issue #31165

This commit is contained in:
Yu Watanabe
2024-02-09 14:15:17 +09:00
parent c3e12de0a6
commit 2bb1d3c108
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -1046,6 +1046,8 @@ static int link_up_or_down(Link *link, bool up, Request *req) {
assert(link->manager->rtnl);
assert(req);
/* The log message is checked in the test. Please also update test_bond_active_slave() in
* test/test-network/systemd-networkd-tests.py. when the log message below is modified. */
log_link_debug(link, "Bringing link %s", up_or_down(up));
r = sd_rtnl_message_new_link(link->manager->rtnl, &m, RTM_SETLINK, link->ifindex);