|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://github.com/linux-nvme/libnvme/doc/config-schema.json", |
| 4 | + "title": "config.json", |
| 5 | + "description": "libnvme JSON configuration", |
| 6 | + "type": "object", |
| 7 | + "properties": { |
| 8 | + "hosts": { |
| 9 | + "description": "Array of NVMe Host properties", |
| 10 | + "type": "array", |
| 11 | + "items": { "$ref": "#/$defs/host" } |
| 12 | + } |
| 13 | + }, |
| 14 | + "$defs": { |
| 15 | + "host": { |
| 16 | + "description": "NVMe Host properties", |
| 17 | + "type": "object", |
| 18 | + "properties": { |
| 19 | + "hostnqn": { |
| 20 | + "description": "NVMe host NQN", |
| 21 | + "type": "string", |
| 22 | + "maxLength": 223 |
| 23 | + }, |
| 24 | + "hostid": { |
| 25 | + "description": "NVMe host ID", |
| 26 | + "type": "string" |
| 27 | + }, |
| 28 | + "dhchap_key": { |
| 29 | + "description": "Host DH-HMAC-CHAP key", |
| 30 | + "type": "string" |
| 31 | + }, |
| 32 | + "hostsymname": { |
| 33 | + "description": "NVMe host symbolic name", |
| 34 | + "type": "string" |
| 35 | + }, |
| 36 | + "persistent_discovery_ctrl": { |
| 37 | + "description": "Enable/disable Persistent Discovery Controller", |
| 38 | + "type": "boolean" |
| 39 | + }, |
| 40 | + "required": [ "hostnqn" ], |
| 41 | + "subsystems": { |
| 42 | + "description": "Array of NVMe subsystem properties", |
| 43 | + "type": "array", |
| 44 | + "items": { "$ref": "#/$defs/subsystem" } |
| 45 | + } |
| 46 | + } |
| 47 | + }, |
| 48 | + "subsystem": { |
| 49 | + "description": "NVMe subsystem properties", |
| 50 | + "type": "object", |
| 51 | + "properties": { |
| 52 | + "nqn": { |
| 53 | + "description": "Subsystem NQN", |
| 54 | + "type": "string", |
| 55 | + "maxLength": 223 |
| 56 | + }, |
| 57 | + "ports": { |
| 58 | + "description": "Array of NVMe subsystem ports", |
| 59 | + "type": "array", |
| 60 | + "items": { "$ref": "#/$defs/port" } |
| 61 | + }, |
| 62 | + "required": [ "nqn" ] |
| 63 | + } |
| 64 | + }, |
| 65 | + "port": { |
| 66 | + "description": "NVMe subsystem port", |
| 67 | + "type": "object", |
| 68 | + "properties": { |
| 69 | + "transport": { |
| 70 | + "description": "Transport type", |
| 71 | + "type": "string" |
| 72 | + }, |
| 73 | + "traddr": { |
| 74 | + "description": "Transport address", |
| 75 | + "type": "string" |
| 76 | + }, |
| 77 | + "host_traddr": { |
| 78 | + "description": "Host transport address", |
| 79 | + "type": "string" |
| 80 | + }, |
| 81 | + "host_iface": { |
| 82 | + "description": "Host interface name", |
| 83 | + "type": "string" |
| 84 | + }, |
| 85 | + "trsvcid": { |
| 86 | + "description": "Transport service identifier", |
| 87 | + "type": "string" |
| 88 | + }, |
| 89 | + "dhchap_key": { |
| 90 | + "description": "Host DH-HMAC-CHAP key", |
| 91 | + "type": "string" |
| 92 | + }, |
| 93 | + "dhchap_ctrl_key": { |
| 94 | + "description": "Controller DH-HMAC-CHAP key", |
| 95 | + "type": "string" |
| 96 | + }, |
| 97 | + "nr_io_queues": { |
| 98 | + "description": "Number of I/O queues", |
| 99 | + "type": "integer" |
| 100 | + }, |
| 101 | + "nr_write_queues": { |
| 102 | + "description": "Number of write queues", |
| 103 | + "type": "integer" |
| 104 | + }, |
| 105 | + "nr_poll_queues": { |
| 106 | + "description": "Number of poll queues", |
| 107 | + "type": "integer" |
| 108 | + }, |
| 109 | + "queue_size": { |
| 110 | + "description": "Queue size", |
| 111 | + "type": "integer" |
| 112 | + }, |
| 113 | + "keep_alive_tmo": { |
| 114 | + "description": "Keep-Alive timeout (in seconds)", |
| 115 | + "type": "integer" |
| 116 | + }, |
| 117 | + "reconnect_delay": { |
| 118 | + "description": "Reconnect delay (in seconds)", |
| 119 | + "type": "integer" |
| 120 | + }, |
| 121 | + "ctrl_loss_tmo": { |
| 122 | + "description": "Controller loss timeout (in seconds)", |
| 123 | + "type": "integer" |
| 124 | + }, |
| 125 | + "fast_io_fail_tmo": { |
| 126 | + "description": "Fast I/O Fail timeout (in seconds)", |
| 127 | + "type": "integer", |
| 128 | + "default": 600 |
| 129 | + }, |
| 130 | + "tos": { |
| 131 | + "description": "Type of service", |
| 132 | + "type": "integer", |
| 133 | + "default": -1 |
| 134 | + }, |
| 135 | + "duplicate_connect": { |
| 136 | + "description": "Allow duplicate connections", |
| 137 | + "type": "boolean", |
| 138 | + "default": false |
| 139 | + }, |
| 140 | + "disable_sqflow": { |
| 141 | + "description": "Explicitly disable SQ flow control", |
| 142 | + "type": "boolean", |
| 143 | + "default": false |
| 144 | + }, |
| 145 | + "hdr_digest": { |
| 146 | + "description": "Enable header digest", |
| 147 | + "type": "boolean", |
| 148 | + "default": false |
| 149 | + }, |
| 150 | + "data_digest": { |
| 151 | + "description": "Enable data digest", |
| 152 | + "type": "boolean", |
| 153 | + "default": false |
| 154 | + }, |
| 155 | + "tls": { |
| 156 | + "description": "Enable TLS encryption", |
| 157 | + "type": "boolean", |
| 158 | + "default": false |
| 159 | + }, |
| 160 | + "persistent": { |
| 161 | + "description": "Create persistent discovery connection", |
| 162 | + "type": "boolean" |
| 163 | + }, |
| 164 | + "discovery": { |
| 165 | + "description": "Connect to a discovery controller", |
| 166 | + "type": "boolean" |
| 167 | + } |
| 168 | + }, |
| 169 | + "required": [ "transport" ] |
| 170 | + } |
| 171 | + } |
| 172 | +} |
0 commit comments