Give all nhg_hash_entrys we install into the kernel
as nexthop objects a defined proto matching the zebra
rib table one. This makes sense since nhe's are proto-independent
and determined exclusively in zebra.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
proto = RTPROT_OPENFABRIC;
break;
case ZEBRA_ROUTE_TABLE:
+ case ZEBRA_NHG:
proto = RTPROT_ZEBRA;
break;
default:
ctx->zd_op = op;
ctx->zd_status = ZEBRA_DPLANE_REQUEST_SUCCESS;
+ ctx->u.rinfo.zd_type = ZEBRA_ROUTE_TABLE;
/* Copy over nhe info */
ctx->u.rinfo.nhe.id = nhe->id;
if (CHECK_FLAG(re->status, ROUTE_ENTRY_CHANGED)) {
struct nhg_hash_entry *new_nhe = NULL;
- // TODO: Add proto type here
new_nhe = zebra_nhg_rib_find(0, &new_grp, rt_afi);