Coder Social home page Coder Social logo

Comments (7)

changab avatar changab commented on August 12, 2024

Do we have to support that? I think we can just scope RedfishClinetPkg to support the platform configuration setting and inventory. The actions for Action POST should be taken by BMC, right?

from edk2-redfish-client-deprecated.

nicklela avatar nicklela commented on August 12, 2024

Yes, BMC has to handle action request from user. But I like to discussion how BIOS provide the context of /redfish/v1/Systems/SYS/Bios to BMC while this resource is empty in the beginning.

BIOS know how to provide Attributes object. @odata.XX meta data can be handled by BMC. But how about the initial value of Action attribute? Does REST to C structure generate Redfish actions automatically?

from edk2-redfish-client-deprecated.

changab avatar changab commented on August 12, 2024

ok, I see your point. Does VFR have syntax like Action button? :)

from edk2-redfish-client-deprecated.

nicklela avatar nicklela commented on August 12, 2024

ok, I see your point. Does VFR have syntax like Action button? :)

Yeah there is button support in VFR. But this means that we have to create a button and hide in HII (since there is no function for it in HII) I am wondering if REST to C structure can help to create action context since they are defined in schema already...

from edk2-redfish-client-deprecated.

nicklela avatar nicklela commented on August 12, 2024

Just notice that there is no "value" defined for button op-code. Not sure how to define action link by using button op-codes. Let's discuss this during our call.

from edk2-redfish-client-deprecated.

nicklela avatar nicklela commented on August 12, 2024

We can create a hidden string op-code to specify the location of BIOS action. For example:

#string STR_BIOS_PASSWD_PROMPT #language x-uefi-redfish-Bios.v1_0_9 "/Bios/Actions/#Bios.ChangePassword/target"

#string STR_BIOS_PASSWD_TARGET_PROMPT #language x-uefi-redfish-Bios.v1_0_9 "/redfish/v1/Systems/437XR1138R2/Bios/Actions/Bios.ChangePassword"

from edk2-redfish-client-deprecated.

nicklela avatar nicklela commented on August 12, 2024

So this is about how to generate the context of BIOS action while provisioning. In terms of supporting Redfish action, we certainly need BMC to help us and take HTTP POST from user. But one question comes to my mind is: if BMC can do things for us, what BMC can do so we can standardize the Redfish action support?

One idea is to convert the Redfish action to the read-only attributes in the resource. BMC takes POST action and help to update this read-only attribute. While BIOS is consuming resource, BIOS knows there is a action triggered. For eaxample:

  • ResetBiosToDefaultsPending in Bios.v1_2_0
  • Oem.XXX.ResetKeysPending in Secure boot schema

from edk2-redfish-client-deprecated.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.