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.
This commit is contained in:
Sheng Yang 2013-07-23 18:07:32 -07:00
parent ae248afc57
commit 3af96338dc
1 changed files with 2 additions and 4 deletions

View File

@ -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 ]