forked from saschpe/libvirt-hook-qemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqemu.schema.json
44 lines (44 loc) · 1.67 KB
/
qemu.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"$schema": "http://json-schema.org/schema#",
"title": "Libvirt port-forwarding hook configuration schema",
"type" : "object",
"patternProperties": {
"^[A-Za-z_\\-]": {
"title": "Libvirt domain name",
"type": "object",
"properties": {
"interface": { "type": "string" },
"private_ip": { "type": "string" },
"public_ip": { "type": "string" },
"port_map": {
"type": "object",
"patternProperties": {
"^tcp|udp|icmp": {
"title": "Per-protocol port mapping",
"type": "array",
"items": {
"title": "Public / private port map list",
"type": "array",
"items": {
"title": "Public / private port pair",
"type": "integer"
},
"minItems": 2,
"maxItems": 2,
"additionalItems": false
},
"additionalItems": false,
"minItems": 1,
"uniqueItems": true
}
},
"additionalProperties": false,
"minProperties": 1
}
},
"required": ["private_ip"],
"additionalProperties": false
}
},
"minProperties": 1
}