2019-12-19 16:19:41 +01:00
|
|
|
{
|
2023-08-02 21:12:52 +02:00
|
|
|
"type": "object",
|
2024-03-27 21:53:45 +01:00
|
|
|
"$id": "urn:devicetype-library:components",
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
2023-08-02 21:12:52 +02:00
|
|
|
"additionalProperties": false,
|
|
|
|
"definitions": {
|
|
|
|
"console-port": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/console-port/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"poe": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"console-server-port": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/console-server-port/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"power-port": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/power-port/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"maximum_draw": {
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"allocated_draw": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"power-outlet": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/power-outlet/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"power_port": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"feed_leg": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/power-outlet/properties/feed-leg"
|
2023-08-02 21:12:52 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"interface": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/interface/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"poe_mode": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/interface/properties/poe_mode"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"poe_type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/interface/properties/poe_type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"mgmt_only": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"front-port": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/front-port/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"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": {
|
2024-03-27 21:53:45 +01:00
|
|
|
"$ref": "urn:devicetype-library:generated-schema#/definitions/rear-port/properties/type"
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"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"
|
2019-12-19 16:19:41 +01:00
|
|
|
}
|
2023-08-02 21:12:52 +02:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name"
|
|
|
|
]
|
2019-12-19 16:19:41 +01:00
|
|
|
}
|
2023-08-02 21:12:52 +02:00
|
|
|
}
|
2024-03-27 21:53:45 +01:00
|
|
|
}
|