Post by ratagupt on Mar 23, 2021 3:34:28 GMT
BIOS attribute Registry:
OpenBMC is trying to implement the BIOS attribute Registry where we have hardcoded the "Name" and the "ID" property of the BIOS attribute registry.
Do we see a problem when different company start using this code and all might have the same Name and ID property for the BIOS attribute registry but they would be having different available attributes.
eg:
IBM Machine Bios Attribute registry:(Following data is just for an example)
[rgupta@localhost ~]$ curl -k -H "X-Auth-Token:$bmc_token" -X GET https://${BMC}/redfish/v1/Registries/BiosAttributeRegistry/BiosAttributeRegistry
{
"@odata.id": "/redfish/v1/Registries/BiosAttributeRegistry/BiosAttributeRegistry",
"@odata.type": "#AttributeRegistry.v1_3_2.AttributeRegistry",
"Id": "BiosAttributeRegistry",
"Language": "en",
"Name": "Bios Attribute Registry",
"OwningEntity": "OpenBMC",
"RegistryEntries": {
"Attributes": [
{
"AttributeName": "ibm_bios_1",
"CurrentValue": "Disabled",
"DefaultValue": "Disabled",
"DisplayName": "ibm_bios_1",
"HelpText": "Help text 1",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
}
]
},
{
"AttributeName": "ibm_bios_2",
"CurrentValue": "test",
"DefaultValue": "test",
"DisplayName": "ibm_bios_2",
"HelpText": "test",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
},
{
"OneOf": "test"
},
{
"OneOf": "test1"
}
]
},
{
"@odata.id": "/redfish/v1/Registries/BiosAttributeRegistry/BiosAttributeRegistry",
"@odata.type": "#AttributeRegistry.v1_3_2.AttributeRegistry",
"Id": "BiosAttributeRegistry",
"Language": "en",
"Name": "Bios Attribute Registry",
"OwningEntity": "OpenBMC",
"RegistryEntries": {
"Attributes": [
{
"AttributeName": "ibm_bios_1",
"CurrentValue": "Disabled",
"DefaultValue": "Disabled",
"DisplayName": "ibm_bios_1",
"HelpText": "Help text 1",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
}
]
},
{
"AttributeName": "ibm_bios_2",
"CurrentValue": "test",
"DefaultValue": "test",
"DisplayName": "ibm_bios_2",
"HelpText": "test",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
},
{
"OneOf": "test"
},
{
"OneOf": "test1"
}
]
},
}[rgupta@localhost ~]$ curl -k -H "X-Auth-Token:$bmc_token" -X GET https://${BMC}/redfish/v1/Registries/BiosAttributeRegistry/BiosAttributeRegistry
{
"@odata.id": "/redfish/v1/Registries/BiosAttributeRegistry/BiosAttributeRegistry",
"@odata.type": "#AttributeRegistry.v1_3_2.AttributeRegistry",
"Id": "BiosAttributeRegistry",
"Language": "en",
"Name": "Bios Attribute Registry",
"OwningEntity": "OpenBMC",
"RegistryEntries": {
"Attributes": [
{
"AttributeName": "Arm_Bios_1",
"CurrentValue": "Disabled",
"DefaultValue": "Disabled",
"DisplayName": "Arm_Bios_1",
"HelpText": "Test",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
}
]
},
{
"AttributeName": "Arm_Bios_2",
"CurrentValue": "Test",
"DefaultValue": "Test",
"DisplayName": "Arm_Bios_2",
"HelpText": "Arm_Bios_2",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
},
{
"OneOf": "Test"
},
{
"OneOf": "Test1"
}
]
},
{
"@odata.id": "/redfish/v1/Registries/BiosAttributeRegistry/BiosAttributeRegistry",
"@odata.type": "#AttributeRegistry.v1_3_2.AttributeRegistry",
"Id": "BiosAttributeRegistry",
"Language": "en",
"Name": "Bios Attribute Registry",
"OwningEntity": "OpenBMC",
"RegistryEntries": {
"Attributes": [
{
"AttributeName": "Arm_Bios_1",
"CurrentValue": "Disabled",
"DefaultValue": "Disabled",
"DisplayName": "Arm_Bios_1",
"HelpText": "Test",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
}
]
},
{
"AttributeName": "Arm_Bios_2",
"CurrentValue": "Test",
"DefaultValue": "Test",
"DisplayName": "Arm_Bios_2",
"HelpText": "Arm_Bios_2",
"MenuPath": "",
"ReadOnly": false,
"Type": "Enumeration",
"Value": [
{
"OneOf": "Disabled"
},
{
"OneOf": "Enabled"
},
{
"OneOf": "Test"
},
{
"OneOf": "Test1"
}
]
},
In both the examples above the Name and id of the BIOS attribute registry is same however the attributes are different, Do we see a issue in that?
Ratan