blob: 061b4e0e3cf1ece0f9cb2243fd808932924660eb [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<%
9 fru = fruDict[key]
10%>
11 % for object,interfaces in fru.items():
12 {"${object}",{
13 % for interface,properties in interfaces.items():
14 {"${interface}",{
Marri Devender Rao16fe26d2017-08-21 04:11:18 -050015 % if properties:
16 % for dbus_property,property_value in properties.items():
17 {"${dbus_property}",{
18 "${property_value.get("IPMIFruSection", "")}",
19 "${property_value.get("IPMIFruProperty", "")}", \
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050020<%
21 delimiter = property_value.get("IPMIFruValueDelimiter")
22 if not delimiter:
23 delimiter = ""
24 else:
25 delimiter = '\\' + hex(delimiter)[1:]
26%>
27 "${delimiter}"
28 }},
Marri Devender Rao16fe26d2017-08-21 04:11:18 -050029 % endfor
30 %endif
Marri Devender Raoa62bacc2017-06-04 23:40:16 -050031 }},
32 % endfor
33 }},
34 % endfor
35 }},
36% endfor
37};