redfish: Add OEM BMC Pairing schema for IBM#1437
Conversation
dff2427 to
b23e143
Compare
jeaaustx
left a comment
There was a problem hiding this comment.
I'm not an expert on schema definitions, but I've noted some things which don't look correct to me.
I also see the Manager schema has a separate "OemActions" and "Oem" defined. Is that where this would be linked?
| </edmx:Reference> | ||
| <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Manager_v1.xml"> | ||
| <edmx:Include Namespace="Manager" /> | ||
| <edmx:Include Namespace="Manager.v1_0_0" /> |
There was a problem hiding this comment.
1210 is using #Manager.v1_15_0.Manager, should this match that?
| <Annotation Term="OData.Description" | ||
| String="The names of BMCs that are available for pairing." /> | ||
| <Annotation Term="OData.LongDescription" | ||
| String="This property shall contain an array of names of BMCs that are discovered and available for pairing with this BMC. This array may be empty if no BMCs are currently available for pairing." /> |
There was a problem hiding this comment.
What is meant here by "names of BMCs"? Is this a Redfish link, DBus object path?
There was a problem hiding this comment.
No. It is a unique identifier for BMC(String) . In our case it will be "peer" and "self". This will be passed as argument for pairing action.
There was a problem hiding this comment.
For clarity I think the long description should specify this level of detail.
| <Parameter Name="BmcName" Type="Edm.String" Nullable="false"> | ||
| <Annotation Term="OData.Description" String="The name of the BMC to pair with." /> | ||
| <Annotation Term="OData.LongDescription" | ||
| String="This parameter shall contain the name or identifier of the BMC to establish pairing with." /> |
There was a problem hiding this comment.
What is meant here by name or identifier? Is this a Redfish link, DBus object path?
There was a problem hiding this comment.
Its not redfish link. It is a string name (peer or self)
| @@ -0,0 +1,84 @@ | |||
| { | |||
| "$id": "http://redfish.dmtf.org/schemas/v1/OemBmcPairing.v1_0_0.json", | |||
There was a problem hiding this comment.
Shouldn't this be a bmcweb github path instead?
There was a problem hiding this comment.
I checked with other examples. Yes it should be gi hub path.
| }, | ||
| "AvailableBmcs": { | ||
| "description": "The names of BMCs that are available for pairing", | ||
| "longDescription": "This property shall contain an array of names of BMCs that are discovered and available for pairing with this BMC. This array may be empty if no BMCs are currently available for pairing.", |
There was a problem hiding this comment.
Same question here on meaning of names
There was a problem hiding this comment.
It is answered above
| "parameters": { | ||
| "BmcName": { | ||
| "description": "The name of the BMC to pair with", | ||
| "longDescription": "This parameter shall contain the name or identifier of the BMC to establish pairing with.", |
There was a problem hiding this comment.
Same question here on meaning of name
There was a problem hiding this comment.
Answered above
| }, | ||
| "type": "object" | ||
| }, | ||
| "Pair": { |
There was a problem hiding this comment.
The DMTF schemas define the Actions separately under "Actions". I'm wondering if this should be done similarly?
There was a problem hiding this comment.
You have any example for it?
There was a problem hiding this comment.
Here is one of them, I'm seeing it in many of them:
|
Before going thru the deeper code review, I notified the Oem schema naming (namespace). (BTW, the reason to keep |
gtmills
left a comment
There was a problem hiding this comment.
Let's talk more on if we want to go this direction.. I still think we should go with
standard Redfish even if being slightly misused..
Add OemBmcPairing schema to support BMC pairing functionality. This includes: - CSDL schema definition (OemBmcPairing_v1.xml) - JSON schema files (OemBmcPairing.json and OemBmcPairing.v1_0_0.json) - Meson build configuration update The schema defines: - BmcPairing complex type with Paired status and AvailableBmcs list - Pair action to establish pairing between BMCs This enables discovery and pairing of multiple BMCs in the system. Signed-off-by: Abhilash R <abhilash.kollam@gmail.com>
b23e143 to
8500066
Compare
I followed naming used by OemUpdateSerivice |
|
Please add how the redfish response and request looks like in the commit message |
Add OemBmcPairing schema to support BMC pairing functionality. This includes:
The schema defines:
This enables discovery and pairing of multiple BMCs in the system.