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 | <% |
Ratan Gupta | c19c054 | 2018-02-04 23:24:44 +0530 | [diff] [blame^] | 9 | instanceList = fruDict[key] |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 10 | %> |
Ratan Gupta | c19c054 | 2018-02-04 23:24:44 +0530 | [diff] [blame^] | 11 | % for instancePath,instanceInfo in instanceList.items(): |
| 12 | <% |
| 13 | entityID = instanceInfo["entityID"] |
| 14 | entityInstance = instanceInfo["entityInstance"] |
| 15 | interfaces = instanceInfo["interfaces"] |
| 16 | %> |
| 17 | {${entityID}, ${entityInstance}, "${instancePath}",{ |
Patrick Williams | 5098b03 | 2017-06-01 15:40:10 -0500 | [diff] [blame] | 18 | % for interface,properties in interfaces.items(): |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 19 | {"${interface}",{ |
Marri Devender Rao | 9606ba3 | 2017-08-21 03:42:31 -0500 | [diff] [blame] | 20 | % if properties: |
| 21 | % for dbus_property,property_value in properties.items(): |
| 22 | {"${dbus_property}",{ |
| 23 | "${property_value.get("IPMIFruSection", "")}", |
Ratan Gupta | c19c054 | 2018-02-04 23:24:44 +0530 | [diff] [blame^] | 24 | "${property_value.get("IPMIFruProperty", "")}",\ |
Patrick Williams | aeb726d | 2017-06-01 19:00:43 -0500 | [diff] [blame] | 25 | <% |
| 26 | delimiter = property_value.get("IPMIFruValueDelimiter") |
| 27 | if not delimiter: |
| 28 | delimiter = "" |
| 29 | else: |
| 30 | delimiter = '\\' + hex(delimiter)[1:] |
| 31 | %> |
| 32 | "${delimiter}" |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 33 | }}, |
Marri Devender Rao | 9606ba3 | 2017-08-21 03:42:31 -0500 | [diff] [blame] | 34 | % endfor |
| 35 | %endif |
Ratan Gupta | 6eed403 | 2017-02-10 15:59:31 +0530 | [diff] [blame] | 36 | }}, |
| 37 | % endfor |
| 38 | }}, |
| 39 | % endfor |
| 40 | }}, |
| 41 | % endfor |
| 42 | }; |