add vmid range check to instance creation,

add configurable templates to instance creation

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
2023-04-20 21:27:32 +00:00
parent c3160f760f
commit 9ccb9edf44
2 changed files with 26 additions and 5 deletions

View File

@@ -36,6 +36,21 @@
"local": 1099511627776,
"cephpl": 1099511627776
}
},
"instances": {
"vmid": {
"min": 100,
"max": 199
},
"pool": "examplegroup",
"templates": {
"lxc": {
"net0": "name=eth0,bridge=vmbr0,ip=dhcp,ip6=dhcp,tag=10,type=veth"
},
"qemu": {
"net0": "virtio,bridge=vmbr0,tag=10"
}
}
}
}
}