schemas: legacy: extract NMSensor
Node Manager Sensor is only configured once and unclear what it is used
for.
Create a schema anyways for completeness sake.
Tested: Schema Validator Pass
Change-Id: Ibb46dcbca8904469a2fb36c8afd562164fcb731b
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 8fdbc81..28a174c 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -121,6 +121,9 @@
"$ref": "legacy.json#/$defs/PSUSensor"
},
{
+ "$ref": "legacy.json#/$defs/NMSensor"
+ },
+ {
"$ref": "virtual_sensor.json#/$defs/VirtualSensor"
},
{
diff --git a/schemas/legacy.json b/schemas/legacy.json
index ca0f461..c0dbf17 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -952,6 +952,18 @@
"required": ["Name", "Type"],
"type": "object"
},
+ "NMSensor": {
+ "description": "unknown purpose",
+ "additionalProperties": false,
+ "properties": {
+ "Name": {
+ "$ref": "#/$defs/Types/Name"
+ },
+ "Type": {
+ "const": "NMSensor"
+ }
+ }
+ },
"Aggregate": {
"description": "Don't add additional properties to this schema. Consult README.schema for instructions on adding new Exposes element sub-schema.",
"additionalProperties": false,
@@ -1021,7 +1033,6 @@
"IntelHsbpFruDevice",
"IntelHsbpTempSensor",
"GenericSMBusMux",
- "NMSensor",
"PSM7"
]
}