summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-05-26 06:01:59 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-07 23:35:49 +0200
commitb156a95d4aa0da0edeec74badfea68b76ef1156e (patch)
treee7abca3fdc0b2894e9cfd0cee6a7aba33f3e01e3
parentnetwork: make link enter failed state when link_initialized() is failed (diff)
downloadsystemd-b156a95d4aa0da0edeec74badfea68b76ef1156e.tar.xz
systemd-b156a95d4aa0da0edeec74badfea68b76ef1156e.zip
network: update operational state or friends on reconfigure
-rw-r--r--src/network/networkd-link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 0330c336df..c8af02621f 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1654,6 +1654,7 @@ static int link_reconfigure_internal(Link *link, sd_netlink_message *m, bool for
/* Then, apply new .network file */
link->network = network_ref(network);
+ link_update_operstate(link, true);
link_dirty(link);
r = link_new_carrier_maps(link);