Updated Branches:
  refs/heads/4.2 d79066dfb -> 8a257fb07

CLOUDSTACK-3699: Fix ARP broadcast of VPC router

Every new public IP should be send out ARP broadcast.


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

Branch: refs/heads/4.2
Commit: 8a257fb07c5518b365d021574fb14cea1e27e329
Parents: d672272
Author: Sheng Yang <[email protected]>
Authored: Sun Jul 21 22:15:22 2013 -0700
Committer: Sheng Yang <[email protected]>
Committed: Sun Jul 21 22:21:17 2013 -0700

----------------------------------------------------------------------
 patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8a257fb0/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh 
b/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh
index f2f8a49..a5b0239 100755
--- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh
+++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_ipassoc.sh
@@ -76,8 +76,9 @@ add_an_ip () {
   if [ $old_state -eq 0 ]
   then
     sudo ip link set $ethDev up
-    sudo arping -c 3 -I $ethDev -A -U -s $pubIp $pubIp
   fi
+  sudo arping -c 1 -I $ethDev -A -U -s $pubIp $pubIp
+  sudo arping -c 1 -I $ethDev -A -U -s $pubIp $pubIp
   local tableNo=${ethDev:3} 
   sudo iptables-save -t mangle | grep  "PREROUTING -i $ethDev -m state --state 
NEW -j CONNMARK --set-xmark" 2>/dev/null
   if [ $? -gt 0 ]

Reply via email to