]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_nhg.c
Merge pull request #10908 from donaldsharp/proto_only_error
[mirror_frr.git] / zebra / zebra_nhg.c
index f4524a80180b8cd160ad54f07d363c49eb0dbc26..069d35c6a365828db7c2cd67ec24041d09fac697 100644 (file)
@@ -2265,7 +2265,8 @@ static int nexthop_active(struct nexthop *nexthop, struct nhg_hash_entry *nhe,
                        continue;
                }
 
-               if (match->type == ZEBRA_ROUTE_CONNECT) {
+               if ((match->type == ZEBRA_ROUTE_CONNECT) ||
+                   (RIB_SYSTEM_ROUTE(match) && RSYSTEM_ROUTE(type))) {
                        match = zebra_nhg_connected_ifindex(rn, match,
                                                            nexthop->ifindex);