mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
add an extra test for the bond devices and check that there is an active slave.
this to handle the case where all links do have a physical layer, but where all slaves have been disabled using ifdown (This used to be ctdb commit bf50709630df000583f2b0ef0edc177c01d60eaf)
This commit is contained in:
parent
2501638e15
commit
c915f2e5d5
@ -147,6 +147,10 @@ case $cmd in
|
||||
case $IFACE in
|
||||
ethX*|bond*)
|
||||
IFACE=`echo $IFACE |sed -e 's/\....$//'`
|
||||
grep -q 'Currently Active Slave: None' /proc/net/bonding/$IFACE && {
|
||||
echo "ERROR: No active slaves for bond device $IFACE"
|
||||
exit 1
|
||||
}
|
||||
grep -q '^MII Status: up' /proc/net/bonding/$IFACE || {
|
||||
echo "ERROR: public network interface $IFACE is down"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user