mirror of https://github.com/apache/cloudstack.git
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:
parent
ae248afc57
commit
3af96338dc
|
|
@ -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 ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue