nexthop_grp_weight
if (nexthop_grp_weight(&nhg[i]) == 0) {
nhg->nh_entries[i].weight = nexthop_grp_weight(&entry[i]);