From 3af96338dc9214ba13f32b7fb80e4b516cbd9e08 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Tue, 23 Jul 2013 18:07:32 -0700 Subject: [PATCH] CLOUDSTACK-3533: Fix dhcp_release for IPv6 dhcp_release doesn't support IPv6, though it won't return failure(that's a bug that has been fixed in recent release). So if it's IPv6, we would still use the old way(restart dnsmasq) to refresh the lease. --- patches/systemvm/debian/config/root/edithosts.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh index 9d01b9a0f80..491186f4ec8 100755 --- a/patches/systemvm/debian/config/root/edithosts.sh +++ b/patches/systemvm/debian/config/root/edithosts.sh @@ -96,11 +96,9 @@ wait_for_dnsmasq () { return 1 } -if [ $ipv4 ] +if [ $ipv6 ] then - ip=$ipv4 -else - ip=$ipv6 + no_dhcp_release=1 fi if [ $no_dhcp_release -eq 0 ]