Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: support huawei machine set bootorder #177

Merged
merged 1 commit into from
Jun 1, 2022
Merged

feature: support huawei machine set bootorder #177

merged 1 commit into from
Jun 1, 2022

Conversation

Sn0rt
Copy link
Contributor

@Sn0rt Sn0rt commented May 24, 2022

the user can update the huawei machine boot order by set the arrt of bios.

PATCH /redfish/v1/Systems/1/Bios/Settings HTTP/1.1
Host: 192.168.142.53
User-Agent: gofish/1.0
Connection: close
Content-Length: 129
Accept: application/json
Content-Type: application/json
Cookie: sessionKey=xxx
If-Match: W/"8052ea0b"
X-Auth-Token: xx
Accept-Encoding: gzip

{"Attributes":{"BootTypeOrder0":"Others","BootTypeOrder1":"PXE","BootTypeOrder2":"DVDROMDrive","BootTypeOrder3":"HardDiskDrive"}}

HTTP/1.1 200 OK
Connection: close
Content-Length: 624
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self' data:; object-src 'self'; style-src 'self' 'unsafe-inline'
Content-Type: application/json;charset=utf-8
Date: Tue, 24 May 2022 07:11:55 GMT
Etag: W/"8052ea0b"
Expires: 0
Odata-Version: 4.0
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

Signed-off-by: Guohao Wang wangguohao.2009@gmail.com

Signed-off-by: Guohao Wang <wangguohao.2009@gmail.com>
Copy link
Owner

@stmcginnis stmcginnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@stmcginnis stmcginnis merged commit 10cd4c3 into stmcginnis:main Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants