diff options
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index e60d704b..dacf1d22 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -380,6 +380,13 @@ is_wireless_device () return 1 } +is_bonding_device () +{ + [ "${TYPE}" = "Bonding" ] && return 0 + ethtool -i $1 2>/dev/null | grep -q "driver: bonding" && return 0 + return 1 +} + # Mainframe devices: configure_ccwgroup_device () { |