Merge pull request #17589 from anlancs/master_up

zebra: use macro for one check
This commit is contained in:
Donatas Abraitis 2024-12-07 22:35:12 +02:00 committed by GitHub
commit 17a0d92ffd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4406,9 +4406,7 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p,
if (ng) {
nhe.nhg.nexthop = ng->nexthop;
if (re->type == ZEBRA_ROUTE_CONNECT ||
re->type == ZEBRA_ROUTE_LOCAL ||
re->type == ZEBRA_ROUTE_KERNEL)
if (RIB_SYSTEM_ROUTE(re))
SET_FLAG(nhe.flags, NEXTHOP_GROUP_INITIAL_DELAY_INSTALL);
} else if (re->nhe_id > 0)
nhe.id = re->nhe_id;