ha: Fix assignment of IP addresses if multiple pools are defined
Fixes #2146.
This commit is contained in:
@@ -215,8 +215,12 @@ METHOD(attribute_provider_t, acquire_address, host_t*,
|
|||||||
}
|
}
|
||||||
if (offset == -1)
|
if (offset == -1)
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, "no address left in HA pool '%s' belonging to"
|
DBG1(DBG_CFG, "no address belonging to a responsible segment left "
|
||||||
"a responsible segment", name);
|
"in HA pool '%s'", name);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->mutex->unlock(this->mutex);
|
this->mutex->unlock(this->mutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user