Commit 93133d63 authored by Claes Sjofors's avatar Claes Sjofors

IO hierarchy allowed between node object and rack object

parent 95b6a86f
......@@ -2947,6 +2947,21 @@ static pwr_tStatus io_init_agent(
}
sts = io_trv_child( objid, 0, io_init_rack, ctx, ap, agent_type, iocomm_swap);
if ( ap->Class == pwr_eClass_Node) {
pwr_tAName io_name;
pwr_tOid io_oid;
pwr_tCid io_cid;
sprintf( io_name, "%s-IO", ap->Name);
sts = gdh_NameToObjid( io_name, &io_oid);
if ( ODD(sts)) {
sts = gdh_GetObjectClass( io_oid, &io_cid);
if ( ODD(sts) && io_cid == pwr_eClass_NodeHier) {
sts = io_trv_child( io_oid, 0, io_init_rack, ctx, ap, agent_type, iocomm_swap);
}
}
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment