Commit Graph

889 Commits (157bc18ebd1df53d5d2d44d5e7c9541a231ccf49)

Author SHA1 Message Date
grossmj 4f7b896a6a Fixes tests.
9 years ago
grossmj 34c4649d0b Bump version to 1.3beta1
9 years ago
Jeremy 54c2d34185 Optional IOU license key check.
9 years ago
Jeremy aebcd9f08b Relative path support of IOU, IOS and Qemu images.
9 years ago
Jeremy c41bec0516 Do not give attachment warning for generic attachments in VirtualBox.
9 years ago
Jeremy 223f3ee705 Should fix ProcessLookupError exceptions.
9 years ago
grossmj 1610067eee Support for HDC and HDD disk images in Qemu.
9 years ago
grossmj 062e5a5986 Fixes bug when starting a packet capture in VirtualBox with the project path containing spaces.
9 years ago
grossmj 4c68fd0d52 Renames server.conf and server.ini to gns3_server.conf and gns3_server.ini respectively.
9 years ago
grossmj 03dfd177f9 Use TCP instead of Telnet to communicate with Qemu monitor.
9 years ago
grossmj 5910b4b0be Have the server look in the right place for relative image paths.
9 years ago
grossmj ad5548f70b Convert more that IOU pre 1.3 projects but also other modules on remote servers.
9 years ago
grossmj 5ca65093e4 Fixes bugs when checking if this is a local project.
9 years ago
grossmj 4f1674f50c Bump version to 1.3.0beta1.dev2
9 years ago
grossmj 95766fa30d Let the server know about the project name and convert old IOU projects on remote servers.
9 years ago
grossmj 2934232afb Convert legacy IOU directories on remote servers.
9 years ago
grossmj b1eccc0ace Properly restore configs for Dynamips routers.
9 years ago
grossmj c3014632a4 Fixes rename bug for linked clones in VirtualBox.
9 years ago
grossmj 0d379f428e Makes absolute path checks work on Windows.
9 years ago
Julien Duponchelle be1e0fa1f2 Upload IOURC file via the web interface
9 years ago
Julien Duponchelle ed2e4e43f2 Support the options use_default_iou_values
9 years ago
Julien Duponchelle d126db1fe9 The upload interfaces allow user to choose an image type
9 years ago
Julien Duponchelle 1b68a54234 Look for qemu images in ~/GNS3/images
9 years ago
Jeremy ee578d3c12 Fixes Qemu networking.
9 years ago
Jeremy d87ebb3ed2 Fixes suspend and resume for Qemu.
9 years ago
Jeremy f188bc43e1 Includes SSL cacert file path in the warnings.
9 years ago
Jeremy 053fd9cc0c Adds warnings if the cacert.pem file cannot be found.
9 years ago
Jeremy b58f9e10f9 Bump version to 1.3.0beta1.dev1
9 years ago
Julien Duponchelle e37392c482 Correctly recover id when closing VMS
9 years ago
Julien Duponchelle d657f94c18 Fix crash when you start capture on a non running IOU
9 years ago
grossmj 18f3859e87 Fixes Telnet server initialization issue in VirtualBox. Fixes #88.
9 years ago
Jeremy a64dfdd694 Disconnect network cable if adapter is not attached in VirtualBox vNIC.
9 years ago
Jeremy 2bae814eb1 Remove redundant code for Dynamips hypervisor connections.
9 years ago
Jeremy c012e8ddb3 Merge remote-tracking branch 'origin/asyncio' into asyncio
9 years ago
Jeremy b5e8aaf682 Support for Raven to send crash report from a frozen state.
9 years ago
Julien Duponchelle 2679c03fe2 Drop cloud from config
9 years ago
Julien Duponchelle 01ab91722b Proper format of crash report
9 years ago
Julien Duponchelle a4da6c6a74 Add more informations in crash reports
9 years ago
Julien Duponchelle 1d0ffe4b2e Add more informations to crash reports
9 years ago
Julien Duponchelle 3407ba802e Rename vlan dat file for IOU
9 years ago
Jeremy 7a6136ed14 Fixes adapter bug with VirtualBox.
9 years ago
Jeremy 94bcd1cf11 Bump to version 1.3.0alpha1
9 years ago
Jeremy 69f8b7de6a Bump to version 1.3alpha1
9 years ago
Julien Duponchelle 80fd857658 Fix tests
9 years ago
Julien Duponchelle 10296f4f19 Do not send garbage to console in case of sentry not available
9 years ago
Julien Duponchelle 16dc0d1a8a Send crash report synchronous to avoid lost of events
9 years ago
Jeremy 6208cb997d Fixes Qemu adapters support.
9 years ago
Jeremy 6e89f2c7c7 Remove console_host from IOU and Qemu handlers.
9 years ago
Jeremy 3472f19519 Use console_host from the PortManager.
9 years ago
Jeremy a6869379c3 Fixes console restoration when loading a VirtualBox project.
9 years ago
Jeremy f269ec9527 Fixes Qemu networking.
9 years ago
Jeremy 7ace6fc7e9 Fixes old projects loading issue with Qemu.
9 years ago
Jeremy 466c6142af Merge remote-tracking branch 'origin/asyncio' into asyncio
9 years ago
Jeremy b673b898a8 Fixes problem when trying to convert VirtualBox projects without cloned VMs.
9 years ago
Julien Duponchelle 91ccd6167c API for reloading server config
9 years ago
Julien Duponchelle a9afaa028c Garbage collect VM when closing a project
9 years ago
Julien Duponchelle 66860655b9 If a VM is already loaded, we return a VM instead of creating it twice
9 years ago
Julien Duponchelle 16f6fe9d3b Send criticals errors to Sentry
9 years ago
grossmj 46b0ead329 Close connections for auto-reload.
9 years ago
grossmj c48ca212bd Stop Dynamips hypervisors used by devices before the project is closed.
9 years ago
grossmj 3ef529fb0e Temporally fixes Dynamips console listening issues.
9 years ago
grossmj 518b037d54 Fixes connect call failed for Dynamips hypervisor #78.
9 years ago
grossmj 7223005acd Restore device IDs and fixes race condition when converting an old project.
9 years ago
grossmj 5ae8728ee6 Fixes ATM switch.
9 years ago
grossmj 0c767e1c0e Bump to version 1.3.dev3
9 years ago
grossmj dfce18a48f Fixes migration issues for pre-1.3 projects.
9 years ago
grossmj 0f10d25c0b Optional AUX console port allocation for Dynamips VMs.
9 years ago
grossmj 7fe2d6c367 Support to deactivate sparsemem or mmap globally for Dynamips VMs.
9 years ago
grossmj d762c43314 Include the images directory when converting an old project.
9 years ago
grossmj 708f66b608 Fixes asyncio Lock instantiation issues on Windows.
9 years ago
grossmj 666064f1ae Revert commit: Remove lock for Ghost IOS (problem on Windows).
9 years ago
Jeremy 70d5dea256 Remove lock for Ghost IOS (problem on Windows).
9 years ago
Jeremy ba95567886 Some info message and fixes ghost IOS activation/deactivation.
9 years ago
Jeremy 84870bf736 Some changes with config files on Windows.
9 years ago
Jeremy 0e8b8fa66f Update hypervisors working dir when the project is moved.
9 years ago
Jeremy b55719186e Merge remote-tracking branch 'origin/asyncio' into asyncio
9 years ago
Jeremy 1d6d2a39f0 Allow signals to be processed on Windows.
9 years ago
Julien Duponchelle d0c386860e Fix curl sample generation in the documentation
9 years ago
Julien Duponchelle ae7bf828cd Fix tests on MacOS
9 years ago
Julien Duponchelle f6448bb05d Turn off collored log output on windows
9 years ago
Julien Duponchelle ebb865d973 Export vpcs config path
9 years ago
Jeremy 985c23a40e Explicitly import handlers so freezing application can find and include the right modules.
9 years ago
Jeremy 58d92f1584 Fixes Dynamips console/aux ports restoration when loading a project.
9 years ago
Julien Duponchelle 62afef06af After an iou reload you can write on the console
9 years ago
Julien Duponchelle 5e59145948 If you type reload inside iou you are no longer disconnected
9 years ago
Julien Duponchelle 29e8d91745 Do not output debug for ioucon standard telnet commands
9 years ago
Julien Duponchelle 5a58f6efc8 Fix a crash with Python 3.4 when you stop IOU
9 years ago
Julien Duponchelle c07b8c746e Drop poll from Qemu
9 years ago
Jeremy 0eaad579c2 IOU + VirtualBox conversion of old projects.
9 years ago
Jeremy 85518a3cd6 Fixes race condition when generating an ghost IOS file.
9 years ago
Jeremy 9dc713f31d Fixes race condition when deleting empty legacy project files dir.
9 years ago
Jeremy 473eb0280e Support for relative path in Dynamips.
9 years ago
Jeremy de1be0961f Do not return an error when creating the same project multiple times (for now).
9 years ago
Jeremy 54fc873be5 Prevent multiple projects with the same ID to be created.
9 years ago
Jeremy 349d9d4540 Fixes small issues when deleting Dynamips devices.
9 years ago
Julien Duponchelle f12d3f07f7 Drop the old -files in the project
9 years ago
Julien Duponchelle 8434a286b6 Fix IOU old project import
9 years ago
Julien Duponchelle 818676ce5e Support relative path in iou
9 years ago
Julien Duponchelle 47f8ac00c0 Remove debug
9 years ago
Julien Duponchelle 4ea25739e5 Correctly check if qemu is running
9 years ago
Julien Duponchelle 0713724a97 Properly handle when client cancel's query
9 years ago
Julien Duponchelle 7c2329d870 Garbage collect the lock
9 years ago
grossmj 3528efb1e0 Fixes packet capture for devices when spaces are present in the output file.
9 years ago
grossmj 550cc7f508 Rename vms_lock to vm_locks.
9 years ago
Jeremy 6bb7ab20b3 Fixes vm concurrency and support for devices.
9 years ago
Julien Duponchelle 46b348e46a VM concurrency
9 years ago
Julien Duponchelle 9153b42b9d Fix crash in crash report
9 years ago
Julien Duponchelle 250bb38d7c Crash report with Sentry
9 years ago
Julien Duponchelle 67be24a412 Fix doc generation
9 years ago
Julien Duponchelle 1ca445d5f5 Fix dynampis resume API
9 years ago
Jeremy Grossmann e910167a85 Quick change warning -> debug
9 years ago
Jeremy 49f3c9295f Some debug messages to help with port allocation debugging.
9 years ago
Jeremy 42c07cee1a Properly release UDP ports when closing a project or deleting a link.
10 years ago
Jeremy 3d3300e83a Rename console methods in port manager to use the generic tcp term in the name.
10 years ago
Jeremy 182d2e465e Use projects_path & images_path.
10 years ago
Jeremy fb9f5d3c14 List only executable files in upload handler.
10 years ago
Jeremy 8b19029d97 List only executable files in upload handler.
10 years ago
Jeremy 0e8c184987 Recursive listing of the images directory & fixes bug when uploading no files.
10 years ago
Julien Duponchelle 4d1f08c96e Turn off Qemu graphics if no display is available
10 years ago
Julien Duponchelle cad708f4ab Add warning unstable at the beginning of the API
10 years ago
Julien Duponchelle 4ffb2c8c20 Fix tests
10 years ago
Julien Duponchelle 89b7d62ec6 Some code cleanup
10 years ago
Julien Duponchelle c9314ec509 autopep8 et upload files
10 years ago
Julien Duponchelle 259f6249e2 Fix tests
10 years ago
Julien Duponchelle f7cd09d5fb Display an upload form (upload is not yet ready)
10 years ago
Jeremy 210aa6f12a Bit of cleaning.
10 years ago
Jeremy da11343647 Fixes aiohttp.errors.ClientDisconnectedError errors when SIGINT is received.
10 years ago
Jeremy 565a7b35a6 Default NVRAM and Idle-PC for some IOS images.
10 years ago
Jeremy 9a745ed3f4 Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
Jeremy af700e9bcb Idle-PC and auto idle-pc for Dynamips.
10 years ago
Julien Duponchelle cecf2f5014 Async qemu monitor reading
10 years ago
Julien Duponchelle 45a48cfcc1 Embeded debugging shell
10 years ago
Julien Duponchelle a0f4c6d021 Repare live reload
10 years ago
Julien Duponchelle 47be57dca7 Fix qemu close
10 years ago
Julien Duponchelle 15036837bb No project for qemu binaries list
10 years ago
Julien Duponchelle 8aa5514890 Qemu binary list
10 years ago
Jeremy 90f71e7581 Idle-PC proposals for Dynamips.
10 years ago
Jeremy b393948b67 Fixes iouyap shutdown.
10 years ago
Jeremy 8d02f464c5 Dynamips import/export configs.
10 years ago
Julien Duponchelle 48f5c7c8b3 All params for qemu
10 years ago
Julien Duponchelle d0244824bf Get a working Qemu handler. Next step add all parameters
10 years ago
Julien Duponchelle b03b9226ff So we have running code for a qemu module
10 years ago
Julien Duponchelle 25bcbfb073 Allocation of console port in base vm
10 years ago
Jeremy 4a3e6632c1 Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
Jeremy 380c4d8211 Fixes capture directory path.
10 years ago
grossmj 3d1363150e Fixes ghost file path.
10 years ago
grossmj 610dee957d Use HTTP error 409 instead of 500 for VMError.
10 years ago
Julien Duponchelle d65617657c Fix old project directories renames
10 years ago
Julien Duponchelle 3cb7213427 Fix crash in VPCS
10 years ago
Julien Duponchelle 03b6563864 Initial config path for IOU
10 years ago
Julien Duponchelle dd1833c4f0 iourc_path is set from server settings file
10 years ago
Julien Duponchelle 0e98497a99 Add an endpoint for exporting the initial config file
10 years ago
Julien Duponchelle 57348d0508 Better organisation of the API documentation
10 years ago
Julien Duponchelle 5170428913 Fix a capture crash
10 years ago
grossmj dc4df68c7a Keep Dynamips logs.
10 years ago
Jeremy e6fd471dd5 Save Dynamips VM configs when closing a project.
10 years ago
Jeremy 516b882122 Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
Jeremy 3e95bb9748 Adapter settings and configs for Dynamips VMs.
10 years ago
Julien Duponchelle 6c3a926ce3 Capture is OK on server side
10 years ago
Julien Duponchelle 018e3c1451 Fix IOU closing
10 years ago
Julien Duponchelle 15f89776d3 All current iou code is async
10 years ago
Julien Duponchelle d323234520 Harmonisation of slot, adapter notion
10 years ago
Julien Duponchelle 3ceb43fa62 Fix tests
10 years ago
Julien Duponchelle 605afa1d33 Fix bad execption name in IOU
10 years ago
grossmj 78ffe313fd Dynamips VM & device deletion and ghost support.
10 years ago
grossmj 26f7195288 Dynamips devices packet capture.
10 years ago
grossmj f99e834c37 Dynamips devices support (packet capture to complete).
10 years ago
Jeremy 4f38d96522 Dynamips devices.
10 years ago
Jeremy 094339304c Packet capture for Dynamips VMs.
10 years ago
Jeremy 6ac6c7d796 Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
Jeremy a5ac7c5481 Dynamips NIO connections.
10 years ago
Julien Duponchelle e082cd8b1a Update the remote IOU initial config
10 years ago
Julien Duponchelle 83edc649d2 Rename NVRAM to the correct application id before start the server
10 years ago
Julien Duponchelle a9a3bb1c38 Pep8
10 years ago
Julien Duponchelle 49f012cf4c Turn off documentation sidebar because it's broken
10 years ago
Julien Duponchelle 2cab5293c7 Add the notion of adapters and slot in the api
10 years ago
Julien Duponchelle 821eb5e92b Repare config file loading
10 years ago
Julien Duponchelle ee019caa37 Support l1_keepalives in IOU
10 years ago
Julien Duponchelle 1550ca01e6 IOU support nio ethernet
10 years ago
Julien Duponchelle 3e1875b069 Set console host from port manager
10 years ago
Julien Duponchelle 68427eaddf Auto PEP8 cleanup
10 years ago
Julien Duponchelle a4669689e7 Fix tests due to test reading the local config file
10 years ago
grossmj 0a5aaedc7c Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
grossmj 8f089c45f5 Fixes a few problems in Dynamips implementation.
10 years ago
Julien Duponchelle f99d825346 Support network for IOU
10 years ago
Julien Duponchelle 9160d3caf4 Remove old directories to avoid editing them by mistake...
10 years ago
Julien Duponchelle 3471b03ef9 Clarify JSON schema validation errors
10 years ago
Julien Duponchelle 8b61aa9ae7 Set ram, ethernet adapters, serial adapters
10 years ago
Julien Duponchelle 05df7001a3 Successfully create an iou device from the GUI via HTTP
10 years ago
Julien Duponchelle 4689024b50 Add a --live options to control livereload
10 years ago
Julien Duponchelle ebc214d6fa Fix tests and rename path to iou_path
10 years ago
Julien Duponchelle fb69c693f6 Start iouyap
10 years ago
Julien Duponchelle faa7472670 IOUCON start when vm start
10 years ago
Julien Duponchelle 986c63f344 HTTP api start iou process
10 years ago
Julien Duponchelle 2e99ef69a9 Modules support start iou process (not ioucon and iouyap)
10 years ago
Jeremy 79a57ca420 New Dynamips integration part 3
10 years ago
grossmj 37945585b9 New Dynamips integration part 2
10 years ago
Jeremy 46cbcd6132 New Dynamips integration part 1
10 years ago
Jeremy 648850c411 Server listen to 0.0.0.0 by default.
10 years ago
Jeremy 30c452e938 Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
Jeremy 98586b93ee Add timeout on stopping a VPCS just in case.
10 years ago
Julien Duponchelle 2f85d71f32 Correctly override the config from command line
10 years ago
Julien Duponchelle b31af0abcd Sub directory project-files
10 years ago
grossmj 0d7d0a05c3 Handle old projects.
10 years ago
grossmj 2a3b37a3bd VirtualBox packet capture.
10 years ago
grossmj d499402491 VirtualBox implementation complete.
10 years ago
Julien Duponchelle e81dcd4bba Add /projects before /project
10 years ago
Julien Duponchelle 571044b3e8 Fix server close tests
10 years ago
Jeremy 8118d7762f Parallel execution when closing VMs.
10 years ago
Jeremy f2ff933b20 Fixes console and close in VirtualBox VM.
10 years ago
Julien Duponchelle ab122d969e Allow empty project directory
10 years ago
Julien Duponchelle 5a0c224292 Allow user to change project path on local server
10 years ago
Julien Duponchelle 9f7b8574c8 Useless print
10 years ago
Julien Duponchelle 30f10a559e Fix crash in debug log
10 years ago
Julien Duponchelle 0abf2e82d6 Improve server debug logging
10 years ago
Julien Duponchelle 41a8872819 Refactor VPCS script file loading
10 years ago
Julien Duponchelle 869405738e Code cleanup
10 years ago
Julien Duponchelle b92e065add Fix binary location change for VPCS
10 years ago
Julien Duponchelle dae48b2de4 Update temporary status if project change location
10 years ago
Julien Duponchelle 8367a9eb30 Remove unused files (we can restore them later via git history)
10 years ago
Jeremy 291fac7084 Add project_id in all VM calls.
10 years ago
Jeremy b680138073 Merge remote-tracking branch 'origin/asyncio' into asyncio
10 years ago
Jeremy 1bea78194c Explicit ID names, remove {uuid} from URLs and add vms in URLs for VMs.
10 years ago
Julien Duponchelle c5c219ffe1 Allow modification of path from the client
10 years ago
Julien Duponchelle 2ace014a3c Cleanup old temporary project at startup
10 years ago
Julien Duponchelle ca354ae7f2 Doc API V1
10 years ago
Julien Duponchelle 08158884a4 Add api versionning
10 years ago
Jeremy 119bebee25 Documentation.
10 years ago
Jeremy 59c82e26df Use project_id instead of project_uuid for the API.
10 years ago
Jeremy d2699f051d Change URL for projects: /project becomes /projects and project_id is used instead of uuid.
10 years ago
Julien Duponchelle aeb83a7945 Support %h in VPCS config file
10 years ago
Julien Duponchelle f572f3fc95 You can't modify startup script remotely
10 years ago
Julien Duponchelle 0ce344b1d2 PEP8
10 years ago
Jeremy 81f9252554 Fixes nasty bug when close a cloned VirtualBox VM.
10 years ago
Jeremy 66569f26a4 Make sure to wait for the unload coroutine to finish when the server is shutting down.
10 years ago
Jeremy df72369b0e Fix VirtualBox VM close.
10 years ago
Jeremy 33d5882a4a Add traceback info when catching an exception to help with debugging.
10 years ago
Jeremy 471fbe576c Ignore OSError when checking for config file changes.
10 years ago
Jeremy 45ca493ecf Use module settings from the config file.
10 years ago
Julien Duponchelle 2c3fe2ad4b Repare debug log
10 years ago
Jeremy aecd7dedba Fixes app name for the config file on Linux.
10 years ago
Julien Duponchelle 0ae8d8031a Override configuration from command line even in case of config reload
10 years ago
Julien Duponchelle 6abf420ce1 Support configuration live reload
10 years ago
Julien Duponchelle 21020a2753 Fix server configuration path
10 years ago
Jeremy a3a304bd12 Load port ranges from the config file.
10 years ago
Jeremy 0c90393b5b Send explicit error message when client is checking for the server version.
10 years ago
Jeremy 8d471a89a8 Check for OSError when starting the server.
10 years ago
Jeremy 334835c985 PEP8 + documentation.
10 years ago
Jeremy 8a00d30e23 Change ports to adapters in VirtualBox API entry points.
10 years ago
Jeremy 22369ade49 Rename port_id to port_number for VPCS and adapter_id for VirtualBox to avoid confusion.
10 years ago