diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-02-02 03:20:25 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-02-09 06:15:17 +0100 |
commit | 2bb1d3c1083f8562b00e297dae4268a38de3d99c (patch) | |
tree | f5b9f7dced75a30d46181f5c0cd5187ef2c9de11 /src/network/networkd-setlink.c | |
parent | network: do not bring down a bonding port interface when it is already joined (diff) | |
download | systemd-2bb1d3c1083f8562b00e297dae4268a38de3d99c.tar.xz systemd-2bb1d3c1083f8562b00e297dae4268a38de3d99c.zip |
test-network: add test case for issue #31165
Diffstat (limited to 'src/network/networkd-setlink.c')
-rw-r--r-- | src/network/networkd-setlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c index 4c4e0d1cd9..eb65429a78 100644 --- a/src/network/networkd-setlink.c +++ b/src/network/networkd-setlink.c @@ -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); |