configurations/nvme_p4000: Improve regex
As discussed on [1] use an improved regex covering all known
Intel Pxxxx SSDs available so far.
This allows to move SSDs into a separate file with a different NVMe-MI
address without using a blacklist. Update the filename as its no longer
only covering P4000 series.
1: https://gerrit.openbmc.org/c/openbmc/entity-manager/+/66365
Change-Id: I602eb224f2288edbe8d43ffd7568d9ce628650a8
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/configurations/nvme_intel_p_series.json b/configurations/nvme_intel_p_series.json
new file mode 100644
index 0000000..1416473
--- /dev/null
+++ b/configurations/nvme_intel_p_series.json
@@ -0,0 +1,54 @@
+{
+ "Bus": "$bus",
+ "Exposes": [
+ {
+ "Address": "$address",
+ "Bus": "$bus",
+ "Name": "NVMe $index FRU",
+ "Type": "EEPROM"
+ },
+ {
+ "Address": "0x53",
+ "Bus": "$bus",
+ "Name": "NVMe $index Temp",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 115
+ },
+ {
+ "Direction": "greater than",
+ "Name": "upper non critical",
+ "Severity": 0,
+ "Value": 110
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower non critical",
+ "Severity": 0,
+ "Value": 5
+ },
+ {
+ "Direction": "less than",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0
+ }
+ ],
+ "Type": "NVME1000"
+ }
+ ],
+ "Logging": "Off",
+ "Name": "NVMe $index",
+ "Probe": "xyz.openbmc_project.FruDevice({'PRODUCT_PRODUCT_NAME': 'P(31|33|35|36|37|41|43|44|45|46|48|53|55|56|58)\\d\\d\\w?', 'PRODUCT_MANUFACTURER': '(Intel|INTEL).*'})",
+ "Type": "NVMe",
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "Manufacturer": "$PRODUCT_MANUFACTURER",
+ "Model": "$PRODUCT_PRODUCT_NAME",
+ "PartNumber": "$PRODUCT_PART_NUMBER",
+ "SerialNumber": "$PRODUCT_SERIAL_NUMBER"
+ },
+ "xyz.openbmc_project.Inventory.Item.Chassis": {}
+}