cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahu...@apache.org
Subject [42/50] [abbrv] git commit: VPC : clean up rt_table when stop domr
Date Mon, 10 Sep 2012 20:55:52 GMT
VPC : clean up rt_table when stop domr


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

Branch: refs/heads/4.0
Commit: 5756a2a73b558e95905f3f01cce1453a2ee552cd
Parents: 6c96e63
Author: anthony <anthony@cloud.com>
Authored: Tue Jul 3 12:25:05 2012 -0700
Committer: Anthony Xu <anthony@cloud.com>
Committed: Fri Sep 7 17:48:23 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/5756a2a7/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 656d75e..236abbd 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -602,10 +602,10 @@ EOF
   ip route delete default
   # create route table for static route
 
-  sudo echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
   sudo echo "252 static_route" >> /etc/iproute2/rt_tables 2>/dev/null
-  sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
+  sudo echo "251 static_route_back" >> /etc/iproute2/rt_tables 2>/dev/null
   sudo ip rule add from $VPCCIDR table static_route 2>/dev/null
+  sudo ip rule add from $VPCCIDR table static_route_back 2>/dev/null
 
   sed -i  /gateway/d /etc/hosts
 
@@ -777,6 +777,7 @@ setup_default() {
 auto lo
 iface lo inet loopback
 EOF
+  cp -f /etc/iptables/rt_tables_init /etc/iproute2/rt_tables
 }
 
 change_password() {


Mime
View raw message