summaryrefslogtreecommitdiff
path: root/zebra/zebra_static.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-10-05 10:58:43 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-10-05 11:00:38 -0400
commit515b2a23e7a36a60783dae45d9bdbc9b2ecb447c (patch)
treec9b9e4f4cd8261baf653bf481108a3c46ae55e69 /zebra/zebra_static.c
parent9ad5ef406dd4ff104230b81a52de9fff41f3c526 (diff)
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>
Diffstat (limited to 'zebra/zebra_static.c')
-rw-r--r--zebra/zebra_static.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c
index 1dc54e171c..dfe196c4b2 100644
--- a/zebra/zebra_static.c
+++ b/zebra/zebra_static.c
@@ -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)