def METHOD_NAME(status, output):
    """ ratio <5% is acceptance."""
    if status != 0:
        test.fail("Ping failed, staus:%s, output:%s" % (status, output))
    # if status != 0 the ping process seams hit issue.
    ratio = utils_test.get_loss_ratio(output)
    if ratio == -1:
        test.fail("The ratio is %s, and status is %s, "
                  "output is %s" % (ratio, status, output))
    elif ratio > int(params["failed_ratio"]):
        test.fail("The loss raito is %s, test failed" % ratio)
    test.log.info("ping pass with loss raito:%s, that less than %s",
                  ratio, params["failed_ratio"])