
For better report the host status, I would like to merge the code for get_host_stats() and get_available_resource(). As most of them are similar, merge together to easily manage the code. Change-Id: I1900da06576d2f066c6154306f77f7c721e64cdf Closes-bug: 1387089