-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
5bc35b2
to
1166a4d
Compare
1166a4d
to
9ab35be
Compare
There was a problem hiding this 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
Please add a better title to the PR 🤣 |
providers/supermicro/supermicro.go
Outdated
@@ -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`)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why make this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
} | ||
} | ||
|
||
func stateFinalized(s redfish.TaskState) bool { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redfish.
X11 doesnt have a taskID at all, X12 creates a new taskID for each, and X13 keeps the same taskID
Is this work compatible with bmc-toolbox#394 ? |
This work will replace that work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested on both x11 and x13 servers
* X13 Inventory support * X13 Firmware update support * Fix up examples * remove duplicate import * fix x11 and x12 bug
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