blob: a3de4b590216068f24b706d5e3c9936564f5619a [file] [log] [blame]
Ratan Gupta6eed4032017-02-10 15:59:31 +05301// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
2#include <iostream>
3#include "frup.hpp"
4
5extern const FruMap frus = {
Patrick Williams5098b032017-06-01 15:40:10 -05006% for key in fruDict.keys():
Ratan Gupta6eed4032017-02-10 15:59:31 +05307 {${key},{
8<%
Ratan Guptac19c0542018-02-04 23:24:44 +05309 instanceList = fruDict[key]
Ratan Gupta6eed4032017-02-10 15:59:31 +053010%>
Ratan Guptac19c0542018-02-04 23:24:44 +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}",{
Patrick Williams5098b032017-06-01 15:40:10 -050018 % for interface,properties in interfaces.items():
Ratan Gupta6eed4032017-02-10 15:59:31 +053019 {"${interface}",{
Marri Devender Rao9606ba32017-08-21 03:42:31 -050020 % if properties:
21 % for dbus_property,property_value in properties.items():
22 {"${dbus_property}",{
23 "${property_value.get("IPMIFruSection", "")}",
Ratan Guptac19c0542018-02-04 23:24:44 +053024 "${property_value.get("IPMIFruProperty", "")}",\
Patrick Williamsaeb726d2017-06-01 19:00:43 -050025<%
26 delimiter = property_value.get("IPMIFruValueDelimiter")
27 if not delimiter:
28 delimiter = ""
29 else:
30 delimiter = '\\' + hex(delimiter)[1:]
31%>
32 "${delimiter}"
Ratan Gupta6eed4032017-02-10 15:59:31 +053033 }},
Marri Devender Rao9606ba32017-08-21 03:42:31 -050034 % endfor
35 %endif
Ratan Gupta6eed4032017-02-10 15:59:31 +053036 }},
37 % endfor
38 }},
39 % endfor
40 }},
41% endfor
42};