First of all is your dog exhibiting any signs of aggression.
Observe the dog for abt 2 weeks for the same.
Immunity lasts for a long time
Since u had a recent vaccination you dont need another vaccination.
But if its after a year or so u need to take booster doses 3 in no.
Next Steps
As of now observe your dog for signs of rabies. If you are suspicious that it has rabies - signs of which - excess salivation, excessive agression, excessive barking and running around than usual.
Health Tips
Visit a doctor in your free time as soon as possible to evaluate the kind of wound exposure