forked from RackHD/on-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolved PR conflict with upstream repo and update clone repo ,
- Loading branch information
Showing
30 changed files
with
577 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
data/views/redfish-1.0/redfish.1.0.0.computersystem.1.1.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"@odata.context" : "<%= basepath %>/$metadata#Systems/Members/$entity", | ||
"@odata.id": "<%= url %>", | ||
"@odata.type": "#ComputerSystem.1.0.0.ComputerSystem", | ||
"Oem" : {}, | ||
"Id": "<%= identifier %>", | ||
"Description": "", | ||
"Name": "Computer System", | ||
"SystemType": "<%= systemType %>", | ||
"AssetTag": "<%= ohai.data.dmi.chassis.asset_tag %>", | ||
"Manufacturer": "<%= ohai.data.dmi.system.Manufacturer %>", | ||
"Model": "<%= ohai.data.dmi.system.product_name %>", | ||
"SKU": "<%= ohai.data.dmi.system.sku_number %>", | ||
"SerialNumber": "<%= ohai.data.dmi.system.serial_number %>", | ||
"PartNumber": "", | ||
"UUID": "<%= ohai.data.dmi.system.uuid.toLowerCase() %>", | ||
"HostName": "", | ||
"IndicatorLED": "<%= chassisData.uid %>", | ||
"PowerState": "<%= chassisData.power==='Unknown' ? 'On' : chassisData.power %>", | ||
"Boot": {}, | ||
"BiosVersion": "<%= ohai.data.dmi.bios.version.trim() %> <%= ohai.data.dmi.bios.bios_revision.trim() %> <%= ohai.data.dmi.bios.release_date.trim() %>", | ||
"ProcessorSummary": { | ||
"Count": <%= ohai.data.cpu.real %>, | ||
"Model": "<%= ohai.data.dmi.processor.version %>", | ||
"Status": {} | ||
}, | ||
"MemorySummary": { | ||
<% var memsize = 0; %> | ||
<% dmi.data['Memory Device'].forEach(function(dev) { %> | ||
<% var size = dev.Size.split(' ')[0]; %> | ||
<% var units = dev.Size.split(' ')[1]; %> | ||
<% size = isNaN(size) ? 0 : size; %> | ||
<% size = (units === 'GB') ? size * 1024 : size; %> | ||
<% memsize = memsize + parseInt(size); %> | ||
<% }); %> | ||
<% memsize = memsize / 1024; %> | ||
"TotalSystemMemoryGiB": <%= memsize %>, | ||
"Status": {} | ||
}, | ||
"Actions": { | ||
"Oem": { | ||
"RackHD": { | ||
"#RackHD.BootImage": { | ||
"target": "<%=basepath%>/Systems/<%=identifier%>/Actions/RackHD.BootImage" | ||
} | ||
} | ||
}, | ||
"#ComputerSystem.Reset": { | ||
"target": "<%=basepath%>/Systems/<%=identifier%>/Actions/ComputerSystem.Reset" | ||
} | ||
}, | ||
"Status": {}, | ||
"Processors": { | ||
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/Processors" | ||
}, | ||
"EthernetInterfaces": { | ||
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/EthernetInterfaces" | ||
}, | ||
"SimpleStorage": { | ||
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/SimpleStorage" | ||
}, | ||
"LogServices": { | ||
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/LogServices" | ||
}, | ||
"SecureBoot": { | ||
"@odata.id": "<%= basepath %>/Systems/<%= identifier %>/SecureBoot" | ||
}, | ||
"Links": { | ||
"Oem": {}, | ||
"[email protected]": <%= obm.length %>, | ||
"ManagedBy": [ | ||
<% obm.forEach(function(obm, i, arr) { %> | ||
{ | ||
"@odata.id": "<%= basepath %>/Managers/<%= obm %>" | ||
} | ||
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> | ||
<% }); %> | ||
], | ||
"[email protected]": 0, | ||
"PoweredBy": [], | ||
"[email protected]": 0, | ||
"CooledBy": [], | ||
"[email protected]": <%= chassis.length %>, | ||
"Chassis": [ | ||
<% chassis.forEach(function(chassis, i, arr) { %> | ||
{ | ||
"@odata.id": "<%= basepath %>/Chassis/<%= chassis %>" | ||
} | ||
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> | ||
<% }); %> | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"@odata.context": "<%= basepath %>/$metadata#Systems/Links/Members/<%= identifier %>/SecureBoot", | ||
"@odata.id": "<%= url %>", | ||
"@odata.type": "#SecureBoot.1.0.1.SecureBoot", | ||
"SecureBootCurrentBoot": "<%= SecureBoot%>", | ||
"Id": "<%= identifier %>", | ||
"Name": "Secure Boot Current Status" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
on-http (2.4.0) UNRELEASED; urgency=low | ||
on-http (2.5.0) UNRELEASED; urgency=low | ||
|
||
* Initial release | ||
* release 1.0.0 | ||
|
@@ -10,5 +10,6 @@ on-http (2.4.0) UNRELEASED; urgency=low | |
* release 2.2.0 | ||
* release 2.3.0 | ||
* release 2.4.0 | ||
* release 2.5.0 | ||
|
||
-- rackhd <[email protected]> Fri, 05 May 2017 21:03:07 -0400 | ||
-- rackhd <[email protected]> Fri, 12 May 2017 21:03:37 -0400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.