|
@@ -456,6 +456,8 @@ int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
|
|
memcpy(gBladeStatus[g_BMCInfo.IndexInChassis].bladeName, g_BMCInfo.BladeName, 31);
|
|
memcpy(gBladeStatus[g_BMCInfo.IndexInChassis].bladeName, g_BMCInfo.BladeName, 31);
|
|
gBladeStatus[g_BMCInfo.IndexInChassis].slotID = g_BMCInfo.SlotID;
|
|
gBladeStatus[g_BMCInfo.IndexInChassis].slotID = g_BMCInfo.SlotID;
|
|
gBladeStatus[g_BMCInfo.IndexInChassis].pwrStatus = g_BMCInfo.PowerGoodFlag;
|
|
gBladeStatus[g_BMCInfo.IndexInChassis].pwrStatus = g_BMCInfo.PowerGoodFlag;
|
|
|
|
+ gBladeStatus[g_BMCInfo.IndexInChassis].isChMC = 1; //从模块不能管理机箱,网页内显示机箱的默认选中刀片。
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -468,6 +470,7 @@ int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
|
|
memcpy(gBladeStatus[index].bladeName, g_BMCInfo.BladeName, 31);
|
|
memcpy(gBladeStatus[index].bladeName, g_BMCInfo.BladeName, 31);
|
|
gBladeStatus[index].slotID = g_BMCInfo.SlotID;
|
|
gBladeStatus[index].slotID = g_BMCInfo.SlotID;
|
|
gBladeStatus[index].pwrStatus = g_BMCInfo.PowerGoodFlag;
|
|
gBladeStatus[index].pwrStatus = g_BMCInfo.PowerGoodFlag;
|
|
|
|
+ gBladeStatus[index].isChMC = 1;
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -488,6 +491,7 @@ int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
|
|
memcpy(gBladeStatus[index].bladeName, &ResPkt.Data[2], 31);
|
|
memcpy(gBladeStatus[index].bladeName, &ResPkt.Data[2], 31);
|
|
gBladeStatus[index].slotID = ResPkt.Data[33];
|
|
gBladeStatus[index].slotID = ResPkt.Data[33];
|
|
gBladeStatus[index].pwrStatus = ResPkt.Data[34];
|
|
gBladeStatus[index].pwrStatus = ResPkt.Data[34];
|
|
|
|
+ gBladeStatus[index].isChMC = 0;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -495,6 +499,7 @@ int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
|
|
sprintf(gBladeStatus[index].bladeName, "---");
|
|
sprintf(gBladeStatus[index].bladeName, "---");
|
|
gBladeStatus[index].slotID = 0;
|
|
gBladeStatus[index].slotID = 0;
|
|
gBladeStatus[index].pwrStatus = 0;
|
|
gBladeStatus[index].pwrStatus = 0;
|
|
|
|
+ gBladeStatus[index].isChMC = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -503,9 +508,8 @@ int Storlead_getAllBladeStatus(uint8_t *pReq, uint8_t ReqLen, uint8_t *pRes)
|
|
sprintf(gBladeStatus[index].bladeName, "---");
|
|
sprintf(gBladeStatus[index].bladeName, "---");
|
|
gBladeStatus[index].slotID = 0;
|
|
gBladeStatus[index].slotID = 0;
|
|
gBladeStatus[index].pwrStatus = 0;
|
|
gBladeStatus[index].pwrStatus = 0;
|
|
|
|
+ gBladeStatus[index].isChMC = 0;
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|