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

FS-1671; X13 Support #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

FS-1671; X13 Support #9

wants to merge 2 commits into from

Conversation

jakeschuurmans
Copy link

@jakeschuurmans jakeschuurmans commented Nov 19, 2024

What does this PR implement/change/remove?

Support for X13 inventory and X13 BIOS/BMC Firmware update

New example for firmware upload and firmware install uploaded

Copy link

@ofaurax ofaurax left a comment

Choose a reason for hiding this comment

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

Nice work, tested in dry-run on my side

@ofaurax
Copy link

ofaurax commented Nov 19, 2024

Please add a better title to the PR 🤣

@jakeschuurmans jakeschuurmans changed the title FS-1671 FS-1671; X13 Support Nov 19, 2024
@@ -182,8 +182,7 @@ func (c *Client) Open(ctx context.Context) (err error) {
return err
}

if !bytes.Contains(body, []byte(`url_redirect.cgi?url_name=mainmenu`)) &&
!bytes.Contains(body, []byte(`url_redirect.cgi?url_name=topmenu`)) {
if !bytes.Contains(body, []byte(`url_redirect.cgi?url_name=topmenu`)) {

Choose a reason for hiding this comment

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

why make this change?

}
}

func stateFinalized(s redfish.TaskState) bool {

Choose a reason for hiding this comment

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

I low-key hate using a slice instead of a map here, but I don't hate it enough to demand a change.

return "", err
}

// X13s dont create a new task id when going from upload to install, so we pass through the same one

Choose a reason for hiding this comment

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

Is this a redfish version thing? Or a model thing?

@ofaurax
Copy link

ofaurax commented Nov 22, 2024

Is this work compatible with bmc-toolbox#394 ?

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.

3 participants