]> git.ipfire.org Git - people/stevee/network.git/commitdiff
bonding: Allow adding all compatible devices as slaves
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Dec 2014 00:53:00 +0000 (00:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Dec 2014 00:53:00 +0000 (00:53 +0000)
src/hooks/ports/bonding

index 817f6d0e0020196e32541cc7e1bc6fb4f68efefb..33a3167ca15e585f365fc65ac2af7aa9642c9b1c 100644 (file)
@@ -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