cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seb...@apache.org
Subject git commit: updated refs/heads/4.3 to 6d0650b
Date Wed, 02 Jul 2014 14:27:02 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.3 dae442e09 -> 6d0650bbc


CLOUDSTACK-6665: A fix for vpc routers not releasing dhcp leases.

Signed-off-by: Sebastien Goasguen <runseb@gmail.com>


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

Branch: refs/heads/4.3
Commit: 6d0650bbcd26a7147857548c5f20949d2c986f76
Parents: dae442e
Author: Joris van Lieshout <jvanlieshout@schubergphilis.com>
Authored: Tue May 20 11:02:14 2014 +0200
Committer: Sebastien Goasguen <runseb@gmail.com>
Committed: Wed Jul 2 16:26:45 2014 +0200

----------------------------------------------------------------------
 systemvm/patches/debian/config/root/edithosts.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6d0650bb/systemvm/patches/debian/config/root/edithosts.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/root/edithosts.sh b/systemvm/patches/debian/config/root/edithosts.sh
index 57ee7dc..0ff6cc5 100755
--- a/systemvm/patches/debian/config/root/edithosts.sh
+++ b/systemvm/patches/debian/config/root/edithosts.sh
@@ -99,7 +99,7 @@ if [ $dnsmasq_managed_lease -eq 1 ]
 then
   #release previous dhcp lease if present
   logger -t cloud "edithosts: releasing $ipv4"
-  dhcp_release eth0 $ipv4 $(grep "$ipv4 " $DHCP_LEASES | awk '{print $2}') > /dev/null
2>&1
+  dhcp_release $(ip route get "$ipv4/32" | grep " dev " | sed -e "s/^.* dev \([^ ]*\) .*$/\1/g")
$ipv4 $(grep "$ipv4 " $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1
   logger -t cloud "edithosts: released $ipv4"
 fi
 


Mime
View raw message