Have common routines for V4 and V6 route management

Change-Id: I73d815229fab9c1a179499d76c8825aa7a339d04