mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
releasing dhcp leases on vpcs failes because the network tier of the tennant aren't behinbd eth0. Here we make interface selection dynamic.
Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
24bf1c56df
commit
2ebeec4334
@ -99,7 +99,7 @@ if [ $dnsmasq_managed_lease ]
|
|||||||
then
|
then
|
||||||
#release previous dhcp lease if present
|
#release previous dhcp lease if present
|
||||||
logger -t cloud "edithosts: releasing $ipv4"
|
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" | tr " " "\n" | grep eth) $ipv4 $(grep "$ipv4 " $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1
|
||||||
logger -t cloud "edithosts: released $ipv4"
|
logger -t cloud "edithosts: released $ipv4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user