X Tutup
Skip to content

Commit 613d65d

Browse files
committed
network: update operational state when we remove an address
1 parent 9216fdd commit 613d65d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/network/networkd-address.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ int address_remove(Address *address) {
709709
link_ref(link);
710710

711711
address_enter_removing(address);
712+
713+
/* The operational state is determined by address state and carrier state. Hence, if we remove
714+
* an address, the operational state may be changed. */
715+
link_update_operstate(link, true);
712716
return 0;
713717
}
714718

0 commit comments

Comments
 (0)
X Tutup