blob: 57265be66cc42f28b56f7c55aa3e7b3bd1059162 [file] [log] [blame]
Marri Devender Raoa62bacc2017-06-04 23:40:16 -05001// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
2#include <iostream>
3#include "fruread.hpp"
4
5extern const FruMap frus = {
6% for key in fruDict.keys():
7 {${key},{
8<%
Ratan Gupta00330972018-01-19 16:23:10 +05309 instanceList = fruDict[key]
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050010%>
Ratan Gupta00330972018-01-19 16:23:10 +053011 % for instancePath,instanceInfo in instanceList.items():
12<%
13 entityID = instanceInfo["entityID"]
14 entityInstance = instanceInfo["entityInstance"]
15 interfaces = instanceInfo["interfaces"]
16%>
17 {${entityID}, ${entityInstance}, "${instancePath}",{
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050018 % for interface,properties in interfaces.items():
19 {"${interface}",{
Marri Devender Rao16fe26d2017-08-21 04:11:18 -050020 % if properties:
21 % for dbus_property,property_value in properties.items():
22 {"${dbus_property}",{
23 "${property_value.get("IPMIFruSection", "")}",
Ratan Gupta00330972018-01-19 16:23:10 +053024 "${property_value.get("IPMIFruProperty", "")}",\
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050025<%
26 delimiter = property_value.get("IPMIFruValueDelimiter")
27 if not delimiter:
28 delimiter = ""
29 else:
30 delimiter = '\\' + hex(delimiter)[1:]
31%>
32 "${delimiter}"
33 }},
Marri Devender Rao16fe26d2017-08-21 04:11:18 -050034 % endfor
35 %endif
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050036 }},
37 % endfor
38 }},
39 % endfor
40 }},
41% endfor
42};