CLOUDSTACK-2308 fixed adding route in vware for mgmt subnet

Signed-off-by: Abhinandan Prateek <aprat...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e31553af
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e31553af
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e31553af

Branch: refs/heads/rbd-snap-clone
Commit: e31553aff827abd88e3dfa9b65bfb335e09fbd22
Parents: dce4258
Author: Jayapal <jayapalreddy.ur...@citrix.com>
Authored: Thu May 16 19:01:17 2013 +0530
Committer: Abhinandan Prateek <aprat...@apache.org>
Committed: Wed May 22 12:21:30 2013 +0530

----------------------------------------------------------------------
 .../debian/config/etc/init.d/cloud-early-config    |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e31553af/patches/systemvm/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config 
b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
index 893a245..d918670 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -757,7 +757,10 @@ EOF
   fi
   if [ -n "$MGMTNET"  -a -n "$LOCAL_GW" ]
   then
-    ip route add $MGMTNET via $LOCAL_GW dev eth1
+     if [ "$hyp" == "vmware" ]
+     then
+         ip route add $MGMTNET via $LOCAL_GW dev eth0
+     fi
   fi
 
   ip route delete default

Reply via email to