def is_cidr_notation(netmask) -> bool:
    """
    This function will check if the netmask is in CIDR format.

    :param netmask: Can be a 255.255.255.255 or CIDR /24 format
    :return bool: True if mask is in CIDR format
    """

    return "." not in str(netmask)