You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2012/12/27 22:48:17 UTC

[6/32] git commit: Fix broadcast address is 0.0.0.0 on additional public vlan issue

Fix broadcast address is 0.0.0.0 on additional public vlan issue


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

Branch: refs/heads/ui-plugins
Commit: 911f8c33c5feb08138d5dc5ea502236b555849dc
Parents: 96c7bbe
Author: Sheng Yang <sh...@citrix.com>
Authored: Tue Dec 11 13:38:36 2012 -0800
Committer: Sheng Yang <sh...@citrix.com>
Committed: Fri Dec 21 15:22:15 2012 -0800

----------------------------------------------------------------------
 .../debian/config/opt/cloud/bin/ipassoc.sh         |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/911f8c33/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 c9a5e14..5af5d92 100755
--- a/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh
+++ b/patches/systemvm/debian/config/opt/cloud/bin/ipassoc.sh
@@ -137,7 +137,7 @@ copy_routes_from_main() {
 ip_addr_add() {
   local dev="$1"
   local ip="$2"
-  sudo ip addr add dev $dev $ip > /dev/null
+  sudo ip addr add dev $dev $ip brd + > /dev/null
 
 }
 
@@ -294,7 +294,7 @@ remove_an_ip () {
     then
       continue
     fi
-    sudo ip addr add dev $ethDev $ipMask
+    sudo ip addr add dev $ethDev $ipMask brd +
   done
 
   remove_routing $1