]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: update operational state when we remove an address
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 07:39:38 +0000 (16:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 11:44:47 +0000 (20:44 +0900)
src/network/networkd-address.c

index 44f77db3be62387b504f4ca86cb34ae6f36e9f12..b083b632b124c5a94dc2ab17c4f1de305fc1deaa 100644 (file)
@@ -709,6 +709,10 @@ int address_remove(Address *address) {
         link_ref(link);
 
         address_enter_removing(address);
+
+        /* The operational state is determined by address state and carrier state. Hence, if we remove
+         * an address, the operational state may be changed. */
+        link_update_operstate(link, true);
         return 0;
 }