When the MTU of a bridge is changed, device_set_mtu will
now change the MTU of all ports in that bridge, too.
This does not seem to be 100% necessary, but it makes it
clearer and probably avoids some other bugs.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
assert device_exists ${device}
+ # Handle bridges differently
+ if device_is_bridge ${device}; then
+ local port
+ for port in $(bridge_get_members ${device}); do
+ device_set_mtu ${port} ${mtu}
+ done
+ fi
+
log INFO "Setting MTU of ${device} to ${mtu}"
local up