if ! arping -q -c 2 -w 3 -D -I ${device} ${address}; then
log DEBUG "Detected duplicate address '${address}' on device '${device}'."
- return ${EXIT_ERROR}
+ return ${EXIT_OK}
fi
- return ${EXIT_OK}
+ return ${EXIT_ERROR}
}
function ipv4_update_neighbours() {
if ! zone_has_ipv4 ${zone} ${ADDRESS}/${PREFIX}; then
if ipv4_detect_duplicate ${zone} ${ADDRESS}; then
- error_log "Duplicate address detected on zone '${zone}' (${address})."
+ error_log "Duplicate address detected on zone '${zone}' (${ADDRESS})."
error_log "Cannot continue."
exit ${EXIT_ERROR}
fi