Files
netbox-repo/schema/moduletype.json
Arseny be61d70b91 schema/moduletype: Add airflow (#3510)
This is useful for fan modules, as well as hot plug power supply
modules with built-in fans.

Suggested-by: Adrien Chabod <adrien.chabod@resel.fr>
2025-09-04 15:37:01 +01:00

85 lines
2.4 KiB
JSON

{
"type": "object",
"$id": "urn:devicetype-library:module-type",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"manufacturer": {
"type": "string",
"maxLength": 100
},
"model": {
"type": "string",
"maxLength": 100
},
"part_number": {
"type": "string",
"maxLength": 50
},
"airflow": {
"$ref": "urn:devicetype-library:generated-schema#/definitions/airflow"
},
"weight": {
"$ref": "urn:devicetype-library:reusable#/definitions/weight"
},
"weight_unit": {
"$ref": "urn:devicetype-library:generated-schema#/definitions/weight-unit"
},
"console-ports": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/console-port"
}
},
"console-server-ports": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/console-server-port"
}
},
"power-ports": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/power-port"
}
},
"power-outlets": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/power-outlet"
}
},
"interfaces": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/interface"
}
},
"front-ports": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/front-port"
}
},
"rear-ports": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/rear-port"
}
},
"module-bays": {
"type": "array",
"items": {
"$ref": "urn:devicetype-library:components#/definitions/module-bay"
}
},
"description": {
"type": "string"
},
"comments": {
"type": "string"
}
},
"required": ["manufacturer", "model"],
"additionalProperties": false
}