aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-04-29 13:21:31 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-04-29 13:27:17 +0200
commit15e9fa1b6de2c5e7b593c47d3f1f9c506bdbe618 (patch)
tree33e57e353a573f7d6793cae54dde3c6700dc88b8
parente1f4ca4ebaab97166a315e0e54231ea8dbf7588c (diff)
downloadinitscripts-15e9fa1b6de2c5e7b593c47d3f1f9c506bdbe618.tar
initscripts-15e9fa1b6de2c5e7b593c47d3f1f9c506bdbe618.tar.gz
initscripts-15e9fa1b6de2c5e7b593c47d3f1f9c506bdbe618.tar.bz2
initscripts-15e9fa1b6de2c5e7b593c47d3f1f9c506bdbe618.tar.xz
initscripts-15e9fa1b6de2c5e7b593c47d3f1f9c506bdbe618.zip
ifup-eth: some options for bridge can be applied after the bridge is up
Conflicts: sysconfig/network-scripts/ifup-eth
-rwxr-xr-xsysconfig/network-scripts/ifup-eth10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index e4acb170..f530364a 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -292,6 +292,16 @@ if [ -x /usr/bin/firewall-cmd -a "${REALDEVICE}" != "lo" ]; then
/usr/bin/firewall-cmd --zone="${ZONE}" --change-interface="${DEVICE}" > /dev/null 2>&1
fi
+if [ "${TYPE}" = "Bridge" ]; then
+ for arg in $BRIDGING_OPTS ; do
+ key=${arg%%=*};
+ value=${arg##*=};
+ if [ "${key}" = "multicast_router" -o "${key}" = "hash_max" ]; then
+ echo $value > /sys/class/net/${DEVICE}/bridge/$key
+ fi
+ done
+fi
+
# IPv6 initialisation?
/etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG}
if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhclient ]; then