def validate_listenertls_mode(listenertls_mode):
    """
    Validate Mode for ListernerTls
    Property: ListenerTls.Mode
    """

    VALID_LISTENERTLS_MODE = ("STRICT", "PERMISSIVE", "DISABLED")

    if listenertls_mode not in VALID_LISTENERTLS_MODE:
        raise ValueError(
            "ListernerTls Mode must be one of: %s" % ", ".join(VALID_LISTENERTLS_MODE)
        )
    return listenertls_mode