Our results indicate that IL17A and IL17F may have different roles in the context of tuberculosis. Here, IL17A is linked to tuberculosis.