52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
"$id": "https://github.com/agama-project/agama/blob/master/rust/share/zfcp.schema.json",
|
|
"title": "Config",
|
|
"description": "zFCP config.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"controllers": {
|
|
"description": "List of zFCP controllers.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"description": "zFCP controller channel id."
|
|
}
|
|
},
|
|
"devices": {
|
|
"description": "List of zFCP devices.",
|
|
"type": "array",
|
|
"items": { "$ref": "#/$defs/device" }
|
|
}
|
|
},
|
|
"$defs": {
|
|
"device": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["channel", "wwpn", "lun"],
|
|
"properties": {
|
|
"channel": {
|
|
"description": "zFCP controller channel id.",
|
|
"type": "string",
|
|
"examples": ["0.0.fa00"]
|
|
},
|
|
"wwpn": {
|
|
"description": "WWPN of the target port.",
|
|
"type": "string",
|
|
"examples": ["0x500507630300c562"]
|
|
},
|
|
"lun": {
|
|
"description": "LUN of the SCSI device.",
|
|
"type": "string",
|
|
"examples": ["0x4010403300000000"]
|
|
},
|
|
"active": {
|
|
"description": "Whether to activate the device.",
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|