The most common cause is gardnerella vaginalis (although others can be involved).
The diagnosis is typically straightforward in the doctor's office. The treatment is with antibiotics, depending on which drugs are effective in your community and your personal drug allergies
. A bacterial infection in the vagina can only be treated after a doctor does an exam, and sometimes lab tests.
Answer assisted by David Miller, Medical Student