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}",{ |
Marri Devender Rao | 16fe26d | 2017-08-21 04:11:18 -0500 | [diff] [blame] | 15 | % 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 Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 20 | <% |
| 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 Rao | 16fe26d | 2017-08-21 04:11:18 -0500 | [diff] [blame] | 29 | % endfor |
| 30 | %endif |
Marri Devender Rao | a62bacc | 2017-06-04 23:40:16 -0500 | [diff] [blame] | 31 | }}, |
| 32 | % endfor |
| 33 | }}, |
| 34 | % endfor |
| 35 | }}, |
| 36 | % endfor |
| 37 | }; |