mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Bump the maximum network adapters to 32 for Qemu.
This commit is contained in:
parent
1f615430ae
commit
a6fd457cff
@ -170,6 +170,8 @@ class VM(object):
|
||||
|
||||
if chassis:
|
||||
router = PLATFORMS[platform](hypervisor, name, router_id, chassis=chassis)
|
||||
elif platform == "c7200" and os.path.basename(image).lower().startswith("c7200p"):
|
||||
router = PLATFORMS[platform](hypervisor, name, router_id, npe="npe-g2")
|
||||
else:
|
||||
router = PLATFORMS[platform](hypervisor, name, router_id)
|
||||
router.ram = ram
|
||||
|
@ -101,7 +101,7 @@ QEMU_UPDATE_SCHEMA = {
|
||||
"description": "number of adapters",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 8,
|
||||
"maximum": 32,
|
||||
},
|
||||
"adapter_type": {
|
||||
"description": "QEMU adapter type",
|
||||
@ -381,7 +381,7 @@ QEMU_ADD_NIO_SCHEMA = {
|
||||
"description": "Port number",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 8
|
||||
"maximum": 32
|
||||
},
|
||||
"nio": {
|
||||
"type": "object",
|
||||
@ -415,7 +415,7 @@ QEMU_DELETE_NIO_SCHEMA = {
|
||||
"description": "Port number",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 8
|
||||
"maximum": 32
|
||||
},
|
||||
},
|
||||
"additionalProperties": False,
|
||||
|
Loading…
Reference in New Issue
Block a user