def get_ip_and_mask_from_cidr(cidr_range):
    """
    The input can be one of the following:
    1. an IPv4 address (i.e the input does not include the separator '/'). In this case the default mask is 32 .
    2. a CIDR range which seems like this: IPv4/mask. for example : 1.2.3.4/32 .
    """
    if '/' not in cidr_range:
        ip_address = cidr_range
        mask = '32'
    else:
        cidr_range = cidr_range.split('/')
        ip_address = cidr_range[0]
        mask = cidr_range[1]
    return ip_address, mask