summaryrefslogtreecommitdiff
path: root/src/network/networkd-address.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-02-13 06:32:48 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-02-18 18:04:11 +0900
commit959f65d32ec15cf84afe3efff1a18b0987b56c60 (patch)
treeb6079efda642bb459df4ce92024c56842844bde3 /src/network/networkd-address.c
parent14153d1b6e8725f995d9ad41e48daf67b140bf6a (diff)
downloadsystemd-959f65d32ec15cf84afe3efff1a18b0987b56c60.tar.gz
network: make bond master follow operstates of slaves
If one of bond slaves is in off, no-carrier, or dormant, then bond master is set to degraded.
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r--src/network/networkd-address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index 06e2662cdd..aa827d6ba6 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -351,7 +351,7 @@ int address_update(
address->scope = scope;
address->cinfo = *cinfo;
- link_update_operstate(address->link);
+ link_update_operstate(address->link, true);
link_check_ready(address->link);
if (!ready &&
@@ -380,7 +380,7 @@ int address_drop(Address *address) {
address_release(address);
address_free(address);
- link_update_operstate(link);
+ link_update_operstate(link, true);
if (link && !ready)
link_check_ready(link);