Updated Branches: refs/heads/3.0.x 6c4f55f93 -> f109669a9
CS-15175: Fix public interfaces of redundant router We need to use ifup/ifdown to bring up the interfaces, because ifconfig don't know the ip of the interface after we modify cloud-early-config to avoid first start up of public interface. Reviewed-by: Edison Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f109669a Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f109669a Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f109669a Branch: refs/heads/3.0.x Commit: f109669a99c1e19623f312a7d5d65ae0d82af42f Parents: 6c4f55f Author: Sheng Yang <[email protected]> Authored: Thu May 31 14:30:42 2012 -0700 Committer: Sheng Yang <[email protected]> Committed: Thu May 31 17:57:13 2012 -0700 ---------------------------------------------------------------------- .../root/redundant_router/enable_pubip.sh.templ | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f109669a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ ---------------------------------------------------------------------- diff --git a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ index 8be4265..3260495 100644 --- a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ +++ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ @@ -5,8 +5,8 @@ set -e ip link|grep BROADCAST|grep -v eth0|grep -v eth1|cut -d ":" -f 2 > /tmp/iflist while read i do - ifconfig $i down - ifconfig $i up + ifdown $i + ifup $i done < /tmp/iflist ip route add default via [GATEWAY] dev eth2 && \ service dnsmasq restart
