]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Do not display recursive nexthops as installed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 2 Feb 2019 00:56:07 +0000 (19:56 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Feb 2019 20:21:26 +0000 (15:21 -0500)
Recursive nexthops should not be marked as installed

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_vty.c

index 18332578636f4241416a21e17c55664f92aeb626..537820f7ea71dd8ec2f3633438d682c240242b06 100644 (file)
@@ -164,7 +164,8 @@ DEFUN (show_ip_rpf_addr,
 static char re_status_output_char(struct route_entry *re, struct nexthop *nhop)
 {
        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 '*';
                else
                        return ' ';