mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-12-22 15:13:06 +01:00
231 lines
4.8 KiB
JSON
231 lines
4.8 KiB
JSON
{
|
|
"type": "object",
|
|
"$id": "urn:devicetype-library:components",
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"console-port": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/console-port/properties/type"
|
|
},
|
|
"poe": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"console-server-port": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/console-server-port/properties/type"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"power-port": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/power-port/properties/type"
|
|
},
|
|
"maximum_draw": {
|
|
"type": "integer"
|
|
},
|
|
"allocated_draw": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"power-outlet": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/power-outlet/properties/type"
|
|
},
|
|
"power_port": {
|
|
"type": "string"
|
|
},
|
|
"feed_leg": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/power-outlet/properties/feed-leg"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interface": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/interface/properties/type"
|
|
},
|
|
"poe_mode": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/interface/properties/poe_mode"
|
|
},
|
|
"poe_type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/interface/properties/poe_type"
|
|
},
|
|
"mgmt_only": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"front-port": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/front-port/properties/type"
|
|
},
|
|
"color": {
|
|
"type": "string",
|
|
"pattern": "^[a-f0-9]{6}$"
|
|
},
|
|
"rear_port": {
|
|
"type": "string"
|
|
},
|
|
"rear_port_position": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type",
|
|
"rear_port"
|
|
]
|
|
},
|
|
"rear-port": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/rear-port/properties/type"
|
|
},
|
|
"color": {
|
|
"type": "string",
|
|
"pattern": "^[a-f0-9]{6}$"
|
|
},
|
|
"positions": {
|
|
"type": "integer"
|
|
},
|
|
"poe": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"module-bay": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"device-bay": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"inventory-item": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"manufacturer": {
|
|
"type": "string"
|
|
},
|
|
"part_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
]
|
|
}
|
|
}
|
|
}
|