Function to return every ip in a subnet
    :param ip_net: Unicast or Multicast IP address or subnet in the following format 192.168.1.1, 239.1.1.1
    :param cidr: CIDR value of 0 to 32
    :return: 
        A list of ip address's

def all_ip_address_in_subnet(ip_net, cidr):
    """
    Function to return every ip in a subnet
    :param ip_net: Unicast or Multicast IP address or subnet in the following format 192.168.1.1, 239.1.1.1
    :param cidr: CIDR value of 0 to 32
    :return: 
        A list of ip address's
    
    """
    ip_address_list = list()
    if not ip_mask('{ip_net}/{cidr}'.format(ip_net=ip_net, cidr=cidr), return_tuple=False):
        LOGGER.critical('{network} is not a valid IPv4 network'.format(network='{ip_net}/{cidr}'.format(ip_net=ip_net,
                                                                                                        cidr=cidr)))
        raise ValueError('{network} is not a valid IPv4 network'.format(network='{ip_net}/{cidr}'.format(ip_net=ip_net,
                                                                                                         cidr=cidr)))

    else:
        ip_net = whole_subnet_maker(ip_net, cidr)
        net = __ipaddress.ip_network('{ip_net}/{cidr}'.format(ip_net=ip_net, cidr=cidr))
        for single_ip in net:
            ip_address_list.append(str(single_ip))

        return ip_address_list