def isgoodipv4(ip_addr):
    """
    Method to check if the give ip address is a valid ipv4
    :param ip_addr: ipv4 address
    :return: Boolean
    """
    pieces = ip_addr.split('.')
    if len(pieces) != 4:
        return False
    try:
        return all(0 <= int(p) < 256 for p in pieces)
    except ValueError:
        return False