]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
network: stop already running engines before updating MAC address 16518/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Jul 2020 16:40:21 +0000 (01:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Jul 2020 06:29:55 +0000 (15:29 +0900)
commit807667f7ac8b9f1ef622224a6dd7f5d2007ba3ff
treed74295a7c50074ce88d2cd4ccffb1a212e6b3254
parent96fe813c422e67583ca51bad3bf73cbf64168880
network: stop already running engines before updating MAC address

In NetworkdBridgeTests.test_bridge_configure_without_carrier of
systemd-networkd-tests.py

```
bridge99: MAC address: 2e:3a:ec:4d:d3:62
Assertion 'sd_ipv4ll_is_running(ll) == 0' failed at src/libsystemd-network/sd-ipv4ll.c:110, function int sd_ipv4ll_set_mac(sd_ipv4ll *, const struct ether_addr *)(). Ignoring.
bridge99: Could not update MAC address in IPv4LL client: Device or resource busy
```
src/network/networkd-link.c