mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-23 00:43:40 +01:00
242bddaec0
* weight schema configuration changes * updated weight/weight unit definitions to compy with import expectations. * updated readme
76 lines
1.8 KiB
JSON
76 lines
1.8 KiB
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"manufacturer": {
|
|
"type": "string"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"part_number": {
|
|
"type": "string"
|
|
},
|
|
"weight": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"multipleOf": 0.01
|
|
},
|
|
"weight_unit": {
|
|
"type": "string",
|
|
"enum": [
|
|
"kg",
|
|
"g",
|
|
"lb",
|
|
"oz"
|
|
]
|
|
},
|
|
"console-ports": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/console-port"
|
|
}
|
|
},
|
|
"console-server-ports": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/console-server-port"
|
|
}
|
|
},
|
|
"power-ports": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/power-port"
|
|
}
|
|
},
|
|
"power-outlets": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/power-outlet"
|
|
}
|
|
},
|
|
"interfaces": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/interface"
|
|
}
|
|
},
|
|
"front-ports": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/front-port"
|
|
}
|
|
},
|
|
"rear-ports": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "components.json#/definitions/rear-port"
|
|
}
|
|
},
|
|
"comments": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["manufacturer", "model"],
|
|
"additionalProperties": false
|
|
}
|