You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/06/16 00:38:02 UTC
[19/51] [abbrv] git commit: VPC : revert changes in ipassoc.sh
VPC : revert changes in ipassoc.sh
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0f5775d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0f5775d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0f5775d4
Branch: refs/heads/vpc
Commit: 0f5775d446bacedfaa129508b4d50e0f7809c62b
Parents: 95faedc
Author: anthony <an...@cloud.com>
Authored: Mon Jun 11 17:35:37 2012 -0700
Committer: Alena Prokharchyk <al...@citrix.com>
Committed: Fri Jun 15 14:29:56 2012 -0700
----------------------------------------------------------------------
.../debian/config/opt/cloud/bin/ipassoc.sh | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0f5775d4/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh b/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh
index 1b7b5bf..cfaa46f 100755
--- a/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh
+++ b/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh
@@ -182,12 +182,6 @@ add_snat() {
sudo iptables -t nat -D POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ;
return 0;
fi
- # setup default gateway
- sudo ip route | grep default
- if [ $? -gt 0 ]
- then
- sudo ip route add default via $defaultGwIP dev $ethDev
- fi
logger -t cloud "$(basename $0):Added SourceNAT $pubIp on interface $ethDev"
sudo iptables -t nat -D POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ;