From 8fa4b26ff6547035da2c983da01f9b1417487c12 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 29 Apr 2014 13:21:31 +0200 Subject: ifup-eth: some options for bridge can be applied after the bridge is up Conflicts: sysconfig/network-scripts/ifup-eth --- sysconfig/network-scripts/ifup-eth | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index fc9293b1..24f17d85 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 -- cgit v1.2.1