{
    "entries": [
        {
            "containerID": 0,
            "entityType": 57346,
            "entityInstance": 0,
            "sensorOffset": 1,
            "event_states": [
                1,
                2,
                3
            ],
            "dbus": {
                "object_path": "/xyz/openbmc_project/network/hypervisor/eth0/ipv4/addr0",
                "interface": "xyz.openbmc_project.Object.Enable",
                "property_name": "Enabled",
                "property_type": "bool",
                "property_values": [
                    true,
                    false,
                    false
                ]
            }
        },
        {
            "containerID": 0,
            "entityType": 57346,
            "entityInstance": 1,
            "sensorOffset": 1,
            "event_states": [
                1,
                2,
                3
            ],
            "dbus": {
                "object_path": "/xyz/openbmc_project/network/hypervisor/eth1/ipv4/addr0",
                "interface": "xyz.openbmc_project.Object.Enable",
                "property_name": "Enabled",
                "property_type": "bool",
                "property_values": [
                    true,
                    false,
                    false
                ]
            }
        }
     ]
}

{
    "entries": [
        {
            "containerID": 0,
            "entityType": 57346,
            "entityInstance": 0,
            "sensorOffset": 1,
            "event_states": [
                1,
                2,
                3
            ],
            "dbus": {
                "object_path": "/xyz/openbmc_project/network/hypervisor/eth0/ipv4/addr0",
                "interface": "xyz.openbmc_project.Object.Enable",
                "property_name": "Enabled",
                "property_type": "bool",
                "property_values": [
                    true,
                    false,
                    false
                ]
            }
        },
        {
            "containerID": 0,
            "entityType": 57346,
            "entityInstance": 1,
            "sensorOffset": 1,
            "event_states": [
                1,
                2,
                3
            ],
            "dbus": {
                "object_path": "/xyz/openbmc_project/network/hypervisor/eth1/ipv4/addr0",
                "interface": "xyz.openbmc_project.Object.Enable",
                "property_name": "Enabled",
                "property_type": "bool",
                "property_values": [
                    true,
                    false,
                    false
                ]
            }
        },
        {
            "containerID": 1,
            "entityType": 32801,
            "entityInstance": 0,
            "sensorOffset": 0,
            "stateSetId": 32777,
            "event_states":[
                1,
                2
            ],
            "dbus": {
                "object_path": "/com/ibm/panel_app",
                "interface": "com.ibm.panel",
                "property_name":  "OSIPLMode",
                "property_type": "bool",
                "property_values": [
                    true,
                    false
                ]
            }
        }
    ]
}

Update dbus-property for OS IPL mode state sensor change
Update dbus-property for OS IPL mode state sensor change

When there is a OS IPL mode sensor state change event from PHYP,
the event state value needs to be updated in OSIPLMode dbus property
hosted by com.ibm.PanelApp service.

This commit updates oem state sensor json with the OS IPL Mode sensor
info with the corresponding panel dbus property that needs to get updated.

Test:
Tested on rainier.
case 1: Set OS IPL mode sensor state as ENABLED

root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b false
root@p10bmc:/tmp#
root@p10bmc:/tmp# pldmtool raw --data 0x80 0x02 0x0A 0x01 0xD0 0x00 0x05 0x00 0x01 0x00 0x01 0x02
pldmtool: Tx: 08 01 80 02 0a 01 d0 00 05 00 01 00 01 02
pldmtool: Rx: 08 01 00 02 0a 00 00
root@p10bmc:/tmp#
root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b true

case 2: Set OS IPL mode sensor state as DISABLED

root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b true
root@p10bmc:/tmp# pldmtool raw --data 0x80 0x02 0x0A 0x01 0xD0 0x00 0x05 0x00 0x01 0x00 0x02 0x01
pldmtool: Tx: 08 01 80 02 0a 01 d0 00 05 00 01 00 02 01
pldmtool: Rx: 08 01 00 02 0a 00 00
root@p10bmc:/tmp#
root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b false
root@p10bmc:/tmp#

Signed-off-by: Priyanga Ramasamy <932229e121c1a7a58715ccdd7e42c11e9da71f13@in.ibm.com>
Change-Id: Ica7812138b34e449bcca5aa52673acc726975caf
