]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: update operational state or friends on reconfigure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 May 2021 04:01:59 +0000 (13:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 7 Jun 2021 21:35:49 +0000 (06:35 +0900)
src/network/networkd-link.c

index 0330c336dff4847a91cb4b8f2eb8582e7c5a09a6..c8af02621f8bbbd04b5b3b9751f22884f2190d5a 100644 (file)
@@ -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);