zebra: Do not display recursive nexthops as installed

Recursive nexthops should not be marked as installed

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-02-01 19:56:07 -05:00
parent 6c47d39902
commit e625a783ed

View File

@ -164,7 +164,8 @@ DEFUN (show_ip_rpf_addr,
static char re_status_output_char(struct route_entry *re, struct nexthop *nhop) static char re_status_output_char(struct route_entry *re, struct nexthop *nhop)
{ {
if (CHECK_FLAG(re->status, ROUTE_ENTRY_INSTALLED)) { if (CHECK_FLAG(re->status, ROUTE_ENTRY_INSTALLED)) {
if (!CHECK_FLAG(nhop->flags, NEXTHOP_FLAG_DUPLICATE)) if (!CHECK_FLAG(nhop->flags, NEXTHOP_FLAG_DUPLICATE) &&
!CHECK_FLAG(nhop->flags, NEXTHOP_FLAG_RECURSIVE))
return '*'; return '*';
else else
return ' '; return ' ';