def qemu_vm(local_server, project): from gns3.modules.qemu.qemu_vm import QemuVM from gns3.modules.qemu import Qemu vm = QemuVM(Qemu(), local_server, project) vm._qemu_id = str(uuid.uuid4()) vm._settings = {"name": "QEMU1"} vm.setInitialized(True) return vm
"guest": 2, "switch": 1, "multilayer_switch": 1, "router": 0 } TEMPLATE_TYPE_TO_CONFIGURATION_PAGE = { "ethernet_switch": Builtin.configurationPage("ethernet_switch"), "ethernet_hub": Builtin.configurationPage("ethernet_hub"), "cloud": Builtin.configurationPage("cloud"), "dynamips": Dynamips.configurationPage(), "iou": IOU.configurationPage(), "vpcs": VPCS.configurationPage(), "traceng": TraceNG.configurationPage(), "virtualbox": VirtualBox.configurationPage(), "qemu": Qemu.configurationPage(), "vmware": VMware.configurationPage(), "docker": Docker.configurationPage() } class NodesView(QtWidgets.QTreeWidget): """ Nodes view to list the nodes. :param parent: parent widget """ def __init__(self, parent=None): super().__init__(parent)
"guest": 2, "switch": 1, "multilayer_switch": 1, "router": 0 } TEMPLATE_TYPE_TO_CONFIGURATION_PAGE = { "ethernet_switch": Builtin.configurationPage("ethernet_switch"), "ethernet_hub": Builtin.configurationPage("ethernet_hub"), "cloud": Builtin.configurationPage("cloud"), "dynamips": Dynamips.configurationPage(), "iou": IOU.configurationPage(), "vpcs": VPCS.configurationPage(), "traceng": TraceNG.configurationPage(), "virtualbox": VirtualBox.configurationPage(), "qemu": Qemu.configurationPage(), "vmware": VMware.configurationPage(), "docker": Docker.configurationPage() } class NodesView(QtWidgets.QTreeWidget): """ Nodes view to list the nodes. :param parent: parent widget """ def __init__(self, parent=None):