Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 1 | // !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!! |
| 2 | #include <iostream> |
| 3 | #include "fruread.hpp" |
| 4 | |
| 5 | extern 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}",{ |
| 15 | % for dbus_property,property_value in properties.items(): |
| 16 | {"${dbus_property}",{ |
| 17 | "${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}" |
| 27 | }}, |
| 28 | % endfor |
| 29 | }}, |
| 30 | % endfor |
| 31 | }}, |
| 32 | % endfor |
| 33 | }}, |
| 34 | % endfor |
| 35 | }; |