Add FRU device presence check

Resolves: openbmc/openbmc#3287

Check the FRU device's Present property upon a
FRU device info reading request.
Return 0xCB completion code for missing devices.

Tested:
Verified using ipmitool commands.

Test case 1, request info about existing FRU device:
Command: ipmitool -I lanplus -U root -P <password> -H
            <ip_addr> fru print <fru_id>
Response:    //Success, FRU data

Test case 2, request info about missing FRU device:
Command: ipmitool -I lanplus -U root -P <password> -H
            <ip_addr> fru print <fru_id>
Response: Device not present (Requested sensor, data, or record not found)

Change-Id: Iaf20f616858d5954ed2c5f5fe96363383aa943be
Signed-off-by: Kirill Pakhomov <k.pakhomov@yadro.com>
2 files changed