Post by jyundt on Feb 1, 2023 22:38:46 GMT
What type of conditional would be required to set a MinCount for the "FirmwareInventory" SoftwareInventoryCollection but still allow for an empty "SoftwareInventory" SoftwareInventoryCollection?
For context, I'm trying to verify that: a FirmwareInventory is present and it has >=2 members. However, we have BMCs that have an empty SoftwareInventory SoftwareInventoryCollection which results in an Interop Validator failure. I'm trying to avoid hardcoding URIs if possible.
Snippet for reference:


For context, I'm trying to verify that: a FirmwareInventory is present and it has >=2 members. However, we have BMCs that have an empty SoftwareInventory SoftwareInventoryCollection which results in an Interop Validator failure. I'm trying to avoid hardcoding URIs if possible.
Snippet for reference:
"Resources": {
"SoftwareInventory": {
"MinVersion": "1.3.0",
"ReadRequirement": "Mandatory",
"PropertyRequirements": {
"Name": {},
"SoftwareId": {},
"Version": {}
}
},
"SoftwareInventoryCollection": {
"Purpose": "SoftwareInventoryCollection should have a minimum of BIOS and BMC firmware.",
"PropertyRequirements": {
"Members": {
"MinCount": 2
}
}
},
"UpdateService": {
"MinVersion": "1.8.0",
"ReadRequirement": "Mandatory",
"PropertyRequirements": {
"FirmwareInventory": {},
"ServiceEnabled": {}
},
"ActionRequirements": {
"SimpleUpdate": {
"ReadRequirement": "Mandatory"
}
}
}
},

