feat: enhance firmware update functionality and add BMC identification support

This commit is contained in:
Alex Lovell-Troy 2025-02-06 17:25:56 -05:00 committed by David Allen
parent 8b3f02b5b5
commit dd944245c7
Signed by: towk
GPG key ID: 0430CDBE22619155

View file

@ -1,20 +1,14 @@
package magellan package magellan
import ( import (
<<<<<<< HEAD
"fmt" "fmt"
"net/url" "net/url"
"github.com/stmcginnis/gofish" "github.com/stmcginnis/gofish"
"github.com/stmcginnis/gofish/redfish" "github.com/stmcginnis/gofish/redfish"
=======
"encoding/json"
"fmt"
"net/http"
"net/url"
"github.com/OpenCHAMI/magellan/pkg/client" "github.com/stmcginnis/gofish"
>>>>>>> 81116ec (refactor: moved internal functions to pkg and updated refs) "github.com/stmcginnis/gofish/redfish"
) )
type UpdateParams struct { type UpdateParams struct {
@ -23,10 +17,7 @@ type UpdateParams struct {
FirmwareVersion string FirmwareVersion string
Component string Component string
TransferProtocol string TransferProtocol string
<<<<<<< HEAD
Insecure bool Insecure bool
=======
>>>>>>> 81116ec (refactor: moved internal functions to pkg and updated refs)
} }
// UpdateFirmwareRemote() uses 'gofish' to update the firmware of a BMC node. // UpdateFirmwareRemote() uses 'gofish' to update the firmware of a BMC node.