1
0
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:
Jeremy 2015-01-03 16:16:07 -07:00
parent 1f615430ae
commit a6fd457cff
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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,