blob: 82941a4410a17a0ec4e3439cc21c0b0bd6b5be6d [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<%
9 fru = fruDict[key]
10%>
Patrick Williams5098b032017-06-01 15:40:10 -050011 % for object,interfaces in fru.items():
Ratan Gupta6eed4032017-02-10 15:59:31 +053012 {"${object}",{
Patrick Williams5098b032017-06-01 15:40:10 -050013 % for interface,properties in interfaces.items():
Ratan Gupta6eed4032017-02-10 15:59:31 +053014 {"${interface}",{
Patrick Williams5098b032017-06-01 15:40:10 -050015 % for dbus_property,property_value in properties.items():
Ratan Gupta6eed4032017-02-10 15:59:31 +053016 {"${dbus_property}",{
Patrick Williamsaeb726d2017-06-01 19:00:43 -050017 "${property_value.get("IPMIFruSection", "")}",
18 "${property_value.get("IPMIFruProperty", "")}", \
19<%
20 delimiter = property_value.get("IPMIFruValueDelimiter")
21 if not delimiter:
22 delimiter = ""
23 else:
24 delimiter = '\\' + hex(delimiter)[1:]
25%>
26 "${delimiter}"
Ratan Gupta6eed4032017-02-10 15:59:31 +053027 }},
28 % endfor
29 }},
30 % endfor
31 }},
32 % endfor
33 }},
34% endfor
35};