From: Yu Watanabe Date: Wed, 2 Feb 2022 07:39:38 +0000 (+0900) Subject: network: update operational state when we remove an address X-Git-Tag: v251-rc1~373 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=613d65d88fb4c615e454776cce73ca214367ba06;p=thirdparty%2Fsystemd.git network: update operational state when we remove an address --- diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 44f77db3be6..b083b632b12 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -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; }