Updated Branches: refs/heads/master 2c001bbe2 -> 96e7e3d1c
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/96e7e3d1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/96e7e3d1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/96e7e3d1 Branch: refs/heads/master Commit: 96e7e3d1cac6cc6873e515e70675f094b128259f Parents: 985757f Author: Sheng Yang <[email protected]> Authored: Thu May 31 14:30:42 2012 -0700 Committer: Sheng Yang <[email protected]> Committed: Thu May 31 17:58:02 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/96e7e3d1/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
