Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 1 | // !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!! |
| 2 | #include <iostream> |
| 3 | #include "frup.hpp" |
| 4 | |
| 5 | extern const FruMap frus = { |
Patrick Williams | 5098b03 | 2017-06-01 15:40:10 -0500 | [diff] [blame] | 6 | % for key in fruDict.keys(): |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 7 | {${key},{ |
| 8 | <% |
| 9 | fru = fruDict[key] |
| 10 | %> |
Patrick Williams | 5098b03 | 2017-06-01 15:40:10 -0500 | [diff] [blame] | 11 | % for object,interfaces in fru.items(): |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 12 | {"${object}",{ |
Patrick Williams | 5098b03 | 2017-06-01 15:40:10 -0500 | [diff] [blame] | 13 | % for interface,properties in interfaces.items(): |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 14 | {"${interface}",{ |
Patrick Williams | 5098b03 | 2017-06-01 15:40:10 -0500 | [diff] [blame] | 15 | % for dbus_property,property_value in properties.items(): |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 16 | {"${dbus_property}",{ |
Patrick Williams | aeb726d | 2017-06-01 19:00:43 -0500 | [diff] [blame^] | 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}" |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 27 | }}, |
| 28 | % endfor |
| 29 | }}, |
| 30 | % endfor |
| 31 | }}, |
| 32 | % endfor |
| 33 | }}, |
| 34 | % endfor |
| 35 | }; |