From: Michael Tremer Date: Tue, 23 Dec 2014 00:53:00 +0000 (+0000) Subject: bonding: Allow adding all compatible devices as slaves X-Git-Tag: 007~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57c577a45483d74b9b854a90e62daf7a60b4188b;p=network.git bonding: Allow adding all compatible devices as slaves --- diff --git a/src/hooks/ports/bonding b/src/hooks/ports/bonding index 817f6d0e..33a3167c 100644 --- a/src/hooks/ports/bonding +++ b/src/hooks/ports/bonding @@ -82,8 +82,8 @@ function hook_edit() { local slave for slave in $(unquote ${SLAVES}); do - if ! device_is_ethernet ${slave}; then - error "Slave device '${slave}' is not an ethernet device." + if ! device_is_ethernet_compatible ${slave}; then + error "The slave device '${slave}' is not able to transport ethernet frames" exit ${EXIT_ERROR} fi done