zebra: Fix wrong afi used in zebra_static.c

When calling a route uninstall in zebra_static.c use the
afi passed in and don't hardcode AFI_IP

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-10-05 10:58:43 -04:00
parent 9ad5ef406d
commit 515b2a23e7

View File

@ -518,7 +518,7 @@ static_delete_route (afi_t afi, safi_t safi, u_char type, struct prefix *p,
}
/* Install into rib. */
static_uninstall_route (AFI_IP, safi, p, si);
static_uninstall_route (afi, safi, p, si);
/* Unlink static route from linked list. */
if (si->prev)