Post by jyundt on Jul 1, 2022 13:34:58 GMT
What is the best method to define a requirement that at least one Chassis has a Links -> Drives property for a device that has multiple Chassis? I was testing something like this:
However, this will result in a Fail for servers that have all Drives reporting via an Enclosure or an StorageEnclosure Chassis and do not have any Drives via a RackMount Chassis E.g.:

Is there a conditional that will avoid this Fail scenario?
{
"SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0",
"ProfileName": "drives",
"ProfileVersion": "0.0.1",
"Resources": {
"Chassis": {
"MinVersion": "1.18.0",
"ReadRequirement": "Mandatory",
"PropertyRequirements": {
"ChassisType": {
"Comparison": "Equal",
"Values": [
"Enclosure",
"RackMount",
"StorageEnclosure"
]
},
"Links": {
"PropertyRequirements": {
"Drives": {}
}
}
}
},
"Drive": {
"MinVersion": "1.12.0",
"ReadRequirement": "Mandatory",
"PropertyRequirements": {
"CapacityBytes": {},
"IndicatorLED": {},
"Manufacturer": {},
"Model": {},
"PhysicalLocation": {},
"Revision": {},
"SerialNumber": {},
"Status": {
"PropertyRequirements": {
"Health": {},
"State": {}
}
}
}
}
}
}
However, this will result in a Fail for servers that have all Drives reporting via an Enclosure or an StorageEnclosure Chassis and do not have any Drives via a RackMount Chassis E.g.:

Is there a conditional that will avoid this Fail scenario?