mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Bit of cleaning.
This commit is contained in:
parent
da11343647
commit
210aa6f12a
@ -292,6 +292,5 @@ class QEMUHandler:
|
|||||||
output=QEMU_BINARY_LIST_SCHEMA)
|
output=QEMU_BINARY_LIST_SCHEMA)
|
||||||
def list_binaries(request, response):
|
def list_binaries(request, response):
|
||||||
|
|
||||||
qemu_manager = Qemu.instance()
|
|
||||||
binaries = yield from Qemu.binary_list()
|
binaries = yield from Qemu.binary_list()
|
||||||
response.json(binaries)
|
response.json(binaries)
|
||||||
|
@ -25,19 +25,12 @@ import shutil
|
|||||||
import random
|
import random
|
||||||
import subprocess
|
import subprocess
|
||||||
import shlex
|
import shlex
|
||||||
import ntpath
|
|
||||||
import telnetlib
|
|
||||||
import time
|
|
||||||
import re
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from gns3server.config import Config
|
|
||||||
|
|
||||||
from .qemu_error import QemuError
|
from .qemu_error import QemuError
|
||||||
from ..adapters.ethernet_adapter import EthernetAdapter
|
from ..adapters.ethernet_adapter import EthernetAdapter
|
||||||
from ..nios.nio_udp import NIO_UDP
|
from ..nios.nio_udp import NIO_UDP
|
||||||
from ..base_vm import BaseVM
|
from ..base_vm import BaseVM
|
||||||
from ...utils.asyncio import subprocess_check_output
|
|
||||||
from ...schemas.qemu import QEMU_OBJECT_SCHEMA
|
from ...schemas.qemu import QEMU_OBJECT_SCHEMA
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
@ -288,12 +288,7 @@ IOU_INITIAL_CONFIG_SCHEMA = {
|
|||||||
"type": ["string", "null"],
|
"type": ["string", "null"],
|
||||||
"minLength": 1,
|
"minLength": 1,
|
||||||
},
|
},
|
||||||
"path": {
|
|
||||||
"description": "Relative path on the server of the initial configuration file",
|
|
||||||
"type": ["string", "null"],
|
|
||||||
"minLength": 1,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"additionalProperties": False,
|
"additionalProperties": False,
|
||||||
"required": ["content", "path"]
|
"required": ["content"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user