113 lines
3.7 KiB
JSON
113 lines
3.7 KiB
JSON
{
|
|
"@odata.type": "#ComputerSystem.v1_1_0.ComputerSystem",
|
|
"Id": {{ identity|string|tojson }},
|
|
"Name": {{ name|string|tojson }},
|
|
"UUID": {{ uuid|string|tojson }},
|
|
"Manufacturer": "Sushy Emulator",
|
|
"Status": {
|
|
"State": "Enabled",
|
|
"Health": "OK",
|
|
"HealthRollUp": "OK"
|
|
},
|
|
{%- if power_state %}
|
|
"PowerState": {{ power_state|string|tojson }},
|
|
{%- endif %}
|
|
"Boot": {
|
|
{%- if boot_source_target %}
|
|
"BootSourceOverrideEnabled": "Continuous",
|
|
"BootSourceOverrideTarget": {{ boot_source_target|string|tojson }},
|
|
"BootSourceOverrideTarget@Redfish.AllowableValues": [
|
|
"Pxe",
|
|
"Cd",
|
|
"Hdd"
|
|
{%- if boot_source_mode %}
|
|
],
|
|
{%- if 'uefi' in boot_source_mode.lower() %}
|
|
"BootSourceOverrideMode": {{ boot_source_mode|string|tojson }},
|
|
"UefiTargetBootSourceOverride": "/0x31/0x33/0x01/0x01"
|
|
{%- else %}
|
|
"BootSourceOverrideMode": {{ boot_source_mode|string|tojson }}
|
|
{%- endif %}
|
|
{%- else %}
|
|
]
|
|
{%- endif %}
|
|
{%- else %}
|
|
"BootSourceOverrideEnabled": "Continuous"
|
|
{%- endif %}
|
|
},
|
|
"ProcessorSummary": {
|
|
{%- if total_cpus %}
|
|
"Count": {{ total_cpus }},
|
|
{%- endif %}
|
|
"Status": {
|
|
"State": "Enabled",
|
|
"Health": "OK",
|
|
"HealthRollUp": "OK"
|
|
}
|
|
},
|
|
"MemorySummary": {
|
|
{%- if total_memory_gb %}
|
|
"TotalSystemMemoryGiB": {{ total_memory_gb }},
|
|
{%- endif %}
|
|
"Status": {
|
|
"State": "Enabled",
|
|
"Health": "OK",
|
|
"HealthRollUp": "OK"
|
|
}
|
|
},
|
|
"Bios": {
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/BIOS"|format(identity)|tojson }}
|
|
},
|
|
"Processors": {
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/Processors"|format(identity)|tojson }}
|
|
},
|
|
"Memory": {
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/Memory"|format(identity)|tojson }}
|
|
},
|
|
"EthernetInterfaces": {
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/EthernetInterfaces"|format(identity)|tojson }}
|
|
},
|
|
"SimpleStorage": {
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/SimpleStorage"|format(identity)|tojson }}
|
|
},
|
|
"Storage": {
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/Storage"|format(identity)|tojson }}
|
|
},
|
|
{%- if indicator_led %}
|
|
"IndicatorLED": {{ indicator_led|string|tojson }},
|
|
{%- endif %}
|
|
"Links": {
|
|
"Chassis": [
|
|
{%- for chassis_ in chassis %}
|
|
{
|
|
"@odata.id": {{ "/redfish/v1/Chassis/%s"|format(chassis_)|tojson }}
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor -%}
|
|
],
|
|
"ManagedBy": [
|
|
{%- for manager in managers %}
|
|
{
|
|
"@odata.id": {{ "/redfish/v1/Managers/%s"|format(manager)|tojson }}
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor -%}
|
|
]
|
|
},
|
|
"Actions": {
|
|
"#ComputerSystem.Reset": {
|
|
"target": {{ "/redfish/v1/Systems/%s/Actions/ComputerSystem.Reset"|format(identity)|tojson }},
|
|
"ResetType@Redfish.AllowableValues": [
|
|
"On",
|
|
"ForceOff",
|
|
"GracefulShutdown",
|
|
"GracefulRestart",
|
|
"ForceRestart",
|
|
"Nmi",
|
|
"ForceOn"
|
|
]
|
|
}
|
|
},
|
|
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s"|format(identity)|tojson }},
|
|
"@Redfish.Copyright": "Copyright 2014-2016 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
|
}
|