You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a scenario where certain resources in the BMC, such as the NetworkProtocol resource, include an OEM-specific section, like:
{
....
"oem": {
"CompanyName": {
"SSDP": "Enabled"
}
}
}
I need to perform an update to this resource using the PATCH method.
My question is: Should I create a custom folder for my company name under the oem section, and within that, define my own NetworkProtocol resource? Then, should I override the update method for this custom resource?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @yeyuan20. You have at least three options here.
You can create a folder for this vendor under the /oem folder in the repo and implement any OEM functionality needed there. If you look at the /oem/smc files, there should be examples of most things you would need to do to implement the OEM functionality.
You can implement the same, but keep it local to your own source code. The original idea with OEM support was that each vendor could be its own separate module that could be installed as needed. Something like being able to do go get github.com/supermicro/gofish-extension. That never happened, but there's no reason you couldn't keep your changes "out of tree" if you wanted to. That said, if you are going to implement it anyway, it would be great to add it directly to the gofish project so others can use it too.
If there are just a couple things you need, you could just implement some marshaling directly in your code that needs it. So it would be something like this:
Hi,
I have a scenario where certain resources in the BMC, such as the NetworkProtocol resource, include an OEM-specific section, like:
{
....
"oem": {
"CompanyName": {
"SSDP": "Enabled"
}
}
}
I need to perform an update to this resource using the PATCH method.
My question is: Should I create a custom folder for my company name under the oem section, and within that, define my own NetworkProtocol resource? Then, should I override the update method for this custom resource?
Thanks!
The text was updated successfully, but these errors were encountered: