]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebrad: Correct problem removing dead routes from rib due to NHT issue
authorDon Slice <dslice@cumulusnetworks.com>
Tue, 6 Dec 2016 17:29:05 +0000 (09:29 -0800)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 17 May 2017 12:19:07 +0000 (08:19 -0400)
Fix for another issue with next-hop tracking for overlapping static routes
created a problem removing the dead routes.  This fix corrects that error.

Ticket: CM-13710
Signed-off-by: Don Slice
Reviewed By: Donald Sharp
Testing Done: ospf-smoke, bgp-smoke

zebra/zebra_rnh.c

index b679803b06337af09cf82e98501e0cbfa1f83a1d..1032d5405f16c9e83b1edf2d1b1239aa31bf1131 100644 (file)
@@ -546,7 +546,7 @@ zebra_rnh_process_static_routes (vrf_id_t vrfid, int family,
     {
       RNODE_FOREACH_RIB(static_rn, srib)
         {
-          if (srib->type == ZEBRA_ROUTE_STATIC)
+          if (srib->type != ZEBRA_ROUTE_STATIC)
             continue;
 
          /* Set the filter flag for the correct nexthop - static route may