Commit Graph

457 Commits (f31e46e8ed76f40a6650d57e69ee79dd0eab0364)

Author SHA1 Message Date
Julien Duponchelle 5fd04e1f9e
Fix a warning when export
8 years ago
Julien Duponchelle f0af7d3c7a
Change node_id when I save as
8 years ago
Julien Duponchelle cf10f02a8d
Fix utf8 errors
8 years ago
Julien Duponchelle ac8bd3fec4
Fix error when importing some old topologies
8 years ago
Julien Duponchelle c90df05e8c
Fix error when deleting node after link creation failed
8 years ago
Julien Duponchelle ee50790ab5
Dissallow export when node are running and are not always running
8 years ago
Julien Duponchelle 37f972dea1
Fix an issue with old symbols paths
8 years ago
Julien Duponchelle da5e3d0e54
Dissallow serial to ethernet connection
8 years ago
Julien Duponchelle 5d12a91268
Fix Serial interface not available for IOU
8 years ago
Julien Duponchelle 5b1ec3bec2
Raise an error if the destination of import contain a .gns3 in path
8 years ago
Julien Duponchelle 2f0e2260ab
Move the generation of the list of ports to the server
8 years ago
Julien Duponchelle 83b72d762c
Download link for the VM
8 years ago
Julien Duponchelle 1412462229
Suspend the GNS3 VM
8 years ago
Julien Duponchelle cfe834afc4
Merge branch 'master' into 2.0
8 years ago
Julien Duponchelle 0910712657
Handle more topologie loading errrors
8 years ago
Julien Duponchelle 436543d8b8
English fix profil => profile
8 years ago
Julien Duponchelle f1fe7246e7
Remove --controller
8 years ago
Julien Duponchelle bc5b5969eb
Import GNS3VM settings from 1.5
8 years ago
Julien Duponchelle 0573c3f7d5
Port name format for 2.0
8 years ago
Julien Duponchelle e40569a46f
Fix When we select two node linked and delete them the link remain
8 years ago
Julien Duponchelle 4b891070d2
Ignore interface without netmask in udp tunnel
8 years ago
Julien Duponchelle 5ae456d6e2
Avoid to corrupt project in case of error during loading
8 years ago
Julien Duponchelle 75d5f6507d
Catch more websocket errors
8 years ago
Julien Duponchelle 6e7f6a94ec
Suspend for VPCS == stop
8 years ago
Julien Duponchelle d7c60db2b9
Replace the internet VM by the Nat node
8 years ago
Julien Duponchelle 3ce3f925ae
Fix creation of link when reloading a project
8 years ago
Julien Duponchelle 0afd7b78b7
Avoid tasks lost during tests creating noisy warnings
8 years ago
Julien Duponchelle 2d86a7fdcf
Fix invalid height for drawing images
8 years ago
Julien Duponchelle 43afce740d
Fix Error when cleaning image behind us #665
8 years ago
Julien Duponchelle 947dcf1406
Prevent another deadlock at exit
8 years ago
Julien Duponchelle 4bbd8938ab
Manage error when GNS3VM failed to start
8 years ago
Julien Duponchelle 4624c7433c
Do not dump GNS3 VM config in the list of computes of config file
8 years ago
Julien Duponchelle 483370b756
Do not ignore error when closing a project
8 years ago
Julien Duponchelle 662c8788c2
Fix auth for websocket between controller and computes
8 years ago
Julien Duponchelle 238421c415
Drop another dead lock at exit
8 years ago
Julien Duponchelle 0a08ea05d6
Fix project loading
8 years ago
Julien Duponchelle ff61f79a88
Catch 401 error when connecting to a compute websocket
8 years ago
Julien Duponchelle 03e31a2cb9
Fix crash when loading a topology without project id
8 years ago
Julien Duponchelle 5fdd33fe3b
Repair VirtualBox VM support
8 years ago
Julien Duponchelle 3bff094238
Remote GNS3 VM support
8 years ago
Julien Duponchelle e0c5fdcf1c
Avoid too much ressources usage during tests
8 years ago
Julien Duponchelle 919355abd8
Catch more error to avoid dead lock at project close
8 years ago
Julien Duponchelle 96f3cb0445
Reconnect to compute after compute update
8 years ago
Julien Duponchelle edae834e0e
Monitor status of the compute
8 years ago
Julien Duponchelle bbc1505274
Return what is supported by a compute node
8 years ago
Julien Duponchelle 72fe5d3489
Merge branch 'master' into 2.0
8 years ago
Julien Duponchelle b7bf97039c
Avoid dead lock if you can not close the GNS3VM at exit
8 years ago
Julien Duponchelle 8352ff02a1
When you change settings of the GNS3 VM the VM is reloaded and project using it closed
8 years ago
Julien Duponchelle 5289c714f4
When you delete a compute all project using it are closed
8 years ago
Julien Duponchelle 134fed8fc5
Smart choice of host for UDP link
8 years ago
Julien Duponchelle 9255dc07b7
Support auto stop for the GNS3 VM
8 years ago
Julien Duponchelle fc8b4c3216
Start GNS3 VM with the controller
8 years ago
Julien Duponchelle 21b99ad9f9
Support for sendings settings for the GNS3VM from the GUI
8 years ago
Julien Duponchelle 6cad685a08
Prevent connection from Cloud to Cloud connection
8 years ago
Julien Duponchelle bfabf3ddc8
Fix tests about local compute node
8 years ago
Julien Duponchelle ab38edf7ca
Merge branch 'profil_support' into 2.0
8 years ago
Julien Duponchelle 897455d5e9 Return computer name instead of local. It's more logic when using remote controller
8 years ago
Julien Duponchelle 46910a183e
Allow to use the local node even without --local
8 years ago
Julien Duponchelle 5bb1abb2a9
Support for profil settings
8 years ago
Julien Duponchelle 22fcfffce7
Fix a typo
8 years ago
grossmj faae248487 Cosmetic changes.
8 years ago
Julien Duponchelle 39db35c3ff
Send notification when snasphot is restored
8 years ago
Julien Duponchelle fa76b89731
Fix websocket error when closing the server
8 years ago
Julien Duponchelle f0fad5289c
Correclty cleanup packet capture objects when closing server
8 years ago
Julien Duponchelle 5de27a95f9
Center label when hostname change
8 years ago
Julien Duponchelle f82527e253
Compute node size on server
8 years ago
Julien Duponchelle 4d8cf8460e
Function for computing size of symbols
8 years ago
Julien Duponchelle a4023c0298
By default project auto close when you exit client
8 years ago
Julien Duponchelle 9694850465
Option for auto close project when no client listen
8 years ago
Julien Duponchelle 9e81994adc
Reset project auto start, auto close, auto open at project import
8 years ago
Julien Duponchelle ac085126fc
Support for auto open projects
8 years ago
Julien Duponchelle 12735ff36e
Bring back the auto_start
8 years ago
Julien Duponchelle 017202d151
Allow to delete a non opened project
8 years ago
Julien Duponchelle 0613efa297
Support for auto open project
8 years ago
Julien Duponchelle 3ca4edef93
Update project API
8 years ago
Julien Duponchelle 431bd789cb
Do not send project closed event when it's a snapshot restore
8 years ago
Julien Duponchelle 16c2305b33
Send a project closed event when project close
8 years ago
grossmj 225e4f7528 Finish support of VMware based GNS3 VM.
8 years ago
Julien Duponchelle 45af721164
Support convertsion of 1.5 snapshots
8 years ago
Julien Duponchelle 7e40eb02e6
API for editing a file on a Node
8 years ago
Julien Duponchelle 0be973f2c5
Support Host node from 1.X topologies
8 years ago
Julien Duponchelle 68eca6c111
Replace snapshots by import / export
8 years ago
Julien Duponchelle e50acf811c
If we don't have a GNS3 VM on linux don't move file to it
8 years ago
Julien Duponchelle f357879186
API for duplicate a project
8 years ago
Julien Duponchelle fb3b6b62f5
Support a name and path during the import
8 years ago
Julien Duponchelle 9bdc0b78eb
Now import project on VM work
8 years ago
Julien Duponchelle fec3694710
Import project on the GNS3VM should work
8 years ago
Julien Duponchelle ce557ecd23
Change the compute id to the GNS3 VM if it's not a Linux host
8 years ago
Julien Duponchelle eff6a9154d
Strip computes info at project export
8 years ago
Julien Duponchelle 94a262cd46
When importing a project fix the GNS3 version
8 years ago
Julien Duponchelle 9b499dc51e
Export project with the GNS3VM
8 years ago
Julien Duponchelle 88ffd43c97
Strip the old / import export project code controller will do everything
8 years ago
Julien Duponchelle 3300e9ec48
Reorganize export project code in order to move it to his own file
8 years ago
Julien Duponchelle 487e99bea5
Import with images
8 years ago
Julien Duponchelle 0f85fbd5f2
Avoid leaving unfinished task behind us
8 years ago
Julien Duponchelle b5ab53bbe9
Early import project api
8 years ago
Julien Duponchelle 14f6bd60fb
Disallow export of running topologies
8 years ago
Julien Duponchelle f68c1f0bde
When exporting project raise error if export is not possible
8 years ago
Julien Duponchelle 08c35f5558
Export non remote server work
8 years ago
Julien Duponchelle 7c4c03cf17
If the connection between the controller and compute is closed reopen it
8 years ago
Julien Duponchelle dd63ca6ef1
Temporary fix for remote GNS3 VM support
8 years ago
Julien Duponchelle 2977b1059e
Fix a crash at startup due to an error with VMware
8 years ago
Julien Duponchelle 3b70b4f217
Raise an error if you overwrite an existing project
8 years ago
Julien Duponchelle c12413e0ce
Fix duplicate name for VM
8 years ago
Julien Duponchelle bda1812811
Avoid duplicate node name when reloading a project
8 years ago
Julien Duponchelle c9bdd76922
IOU support for conversion from 1.5
8 years ago
Julien Duponchelle b745397a3a
Import server config from 1.X GUI
8 years ago
Julien Duponchelle 45591aa74b
Support for 1.3 topologies
8 years ago
Julien Duponchelle b841a0f57b
Support image in conversion from old topologies
8 years ago
Julien Duponchelle 8be1e77a2e
Optimize storage of drawing
8 years ago
Julien Duponchelle 3dccfbb852
Migration to 2.0 rename instructions.txt to README.txt
8 years ago
Julien Duponchelle 2c62b1eeb8
Cloud support for old topologies
8 years ago
Julien Duponchelle 7c7662f1b6
Correctly forward the 409 from compute to client
8 years ago
Julien Duponchelle 3d52e18fa5
Raise an error if uBridge is not installed
8 years ago
Julien Duponchelle ee533943c8
Start of support for topologies before 2.X
8 years ago
grossmj 234f199558 Load/save GNS3 VM settings on controller side.
8 years ago
grossmj 13deecea4e Basic API for GNS3 VM.
8 years ago
Julien Duponchelle 91ec61b88d
Check topology schema when loading/saving it
8 years ago
Julien Duponchelle 9bf4c22a50
Fix HTTP errors not forwarded from compute to client
8 years ago
Julien Duponchelle 7e91a5cb11
Raise error if not started with --local
8 years ago
Julien Duponchelle 7a4c01e737
When you delete a node all link connected are destroyed
8 years ago
Julien Duponchelle 7fee90805b
Ensure we update all the label of a link with only one update notif
8 years ago
Julien Duponchelle 9d2f4168ff
Correctly restore label position for link
8 years ago
Julien Duponchelle 5bf6011429
Rotation for label of interfaces
8 years ago
Julien Duponchelle fea1e3ba61
Support update link on controller
8 years ago
Julien Duponchelle 71d4c0a13a
Store rotation for labels
8 years ago
Julien Duponchelle 818174824b
Breaking change for 2.X topologies! Store width and height for nodes & a
8 years ago
Julien Duponchelle fe7bcae6a1
Send node.updated notif only if object changed
8 years ago
Julien Duponchelle 758a427a76
Add documentation about notifications
8 years ago
Julien Duponchelle 543b423e03
Send compute usage via in the compute.updated notification
8 years ago
Julien Duponchelle 68b7f81601
Dissalow duplicate name for compute and project
8 years ago
Julien Duponchelle c4d7a0b8fc
A settings API
8 years ago
Julien Duponchelle 8ec11619cd
Full symbol support on server
8 years ago
Julien Duponchelle e77445e860
API for uploading symbols
8 years ago
Julien Duponchelle bf154049d2
Suppport ~/GNS3/symbols
8 years ago
Julien Duponchelle 5b4e668eb5
Move symbol static to /symbols
8 years ago
Julien Duponchelle b66f7daa28
Beginning of the symbols from controller
8 years ago
grossmj abfb51baa8 Base for GNS3 VM controlled by the controller.
8 years ago
grossmj 04022677bd Use uBridge for Qemu connections. Ref #267.
8 years ago
Julien Duponchelle 5a410155f7
Create the controller config at first controller start
8 years ago
Julien Duponchelle 852d8e411e
Shape => Drawing
8 years ago
grossmj 00da15e4af Use uBridge for VPCS connections. Ref #267.
8 years ago
Julien Duponchelle b456a363ca
Sample curl with shapes
8 years ago
Julien Duponchelle bc613e9fd8
Send SVG in shape update only when change
8 years ago
Julien Duponchelle 03e9eac55b
Rotation support
8 years ago
Julien Duponchelle 4f78efa0c8
Return the svg field in shape API
8 years ago
Julien Duponchelle 116135b9dc
Item => Shape
8 years ago
Julien Duponchelle 85ebac7eb3
API for rectangle & co
8 years ago
Julien Duponchelle 3132d51694
Do not reload a project if project is already opened
8 years ago
Julien Duponchelle 49eb7d8ce7
Atomic save of the .gns3
8 years ago
Julien Duponchelle c66ef9d218
Support filename for project in the controller
8 years ago
Julien Duponchelle aa5988788d
Strip user from compute in topology and return project filename
8 years ago
Julien Duponchelle 6d36429870
Reload a topology work
8 years ago
Julien Duponchelle 524f8991bc
Project status (opened / closed)
8 years ago
Julien Duponchelle 0569480953
Create link when loading topology on controller
8 years ago
Julien Duponchelle 742243e9df
Method for reloading a topology (not bind to an api handler)
8 years ago
Julien Duponchelle d815d25bdf
Write .gns3 on server
8 years ago
Julien Duponchelle 3255be0ae2
Drop the commit system
8 years ago
Julien Duponchelle 70431a5fa6
Send update of properties from controller only for controller stuffs
8 years ago
grossmj 2bde02d459 Controller side unique node name allocation. Ref #541.
8 years ago
Julien Duponchelle dee9d423a3
Support for x,y,z,symbols,label in node object on controller
8 years ago
Julien Duponchelle 70345abc2a
Try cleaner close of the compute node
8 years ago
Julien Duponchelle fe98163bd0
Send controller images only for qemu, iou and dynamips
8 years ago
Julien Duponchelle 1b530bde3f
Fix Compute name is lost at save
8 years ago
Julien Duponchelle add546158f
List images return images on compute and controller
8 years ago
Julien Duponchelle 08e482004f
Auto upload missing images
8 years ago
Julien Duponchelle 972cbd0594
Cleanly forward exception from compute to controller
8 years ago
Julien Duponchelle dcebaf61b8
Do not timeout forwarded calls
8 years ago
Julien Duponchelle 582e3c72ff
Forward post with large content to compute
8 years ago
Julien Duponchelle 06b54d82dc
Support forwarding POST request to compute nodes
8 years ago
grossmj 65bfb4b907 Remove debug print.
8 years ago
Julien Duponchelle e05b0a396e
Disallow / in compute_id because it was a stupid idea
8 years ago
Julien Duponchelle 917c1c7f84
Expose /virtualbox/vms /vmwares/vms and /images via controller
8 years ago
Julien Duponchelle 4afa5994e8
Fix stacktrace when exiting with Ctrl + C
8 years ago
grossmj f47eb326c7 Revert move "/version" endpoint to "/server/version".
8 years ago
grossmj cd07a99118 Some cleaning + move "/version" endpoint to "/server/version".
8 years ago
Julien Duponchelle df654b40ff
Add a test
8 years ago
Julien Duponchelle fbc04e083b
Allow empty password
8 years ago
Julien Duponchelle 84b12fd953
Support null in compute user and password
8 years ago
Julien Duponchelle 314a7cd8fb
Generate an uuid for compute node if None is provided
8 years ago
Julien Duponchelle 6162d7e431
Generated compute name include the username when it's exists
8 years ago
Julien Duponchelle dbda3fc8fc
Add method to delete and update computes
8 years ago
Julien Duponchelle a797038aeb
Drop code for temporary projects
8 years ago
Julien Duponchelle df73f80bf5
Auto create the local compute node
8 years ago
Julien Duponchelle 0aa81b5fa5
Send event when adding compute node or modify it (for server sumary)
8 years ago
Julien Duponchelle f6a3899603
Return a compute name it could be different of compute id
8 years ago
grossmj 57fd72c35c Ethernet hub and Ethernet switch almost fully migrated to the new API.
8 years ago
Julien Duponchelle 672a617102
Compute IDLE PC via controller
8 years ago
Julien Duponchelle b00a09efaa
Test link.updated event
8 years ago
Julien Duponchelle 54747ee618
Support for link event, fix link not correctly deleted
8 years ago
Julien Duponchelle fa0af7f4a2
Correctly process node.updated event on controller
8 years ago
Julien Duponchelle 694e1a2e68
Extract the notification part of controller to a dedicated class
8 years ago
Julien Duponchelle d86cefaaeb
Support node without console
8 years ago
grossmj 7ebbdcd47c Functional Ethernet hub with new API. Uses Dynamips backend by default for now.
8 years ago
Julien Duponchelle ce0d715895
Fix Deleted node are still return by the API
8 years ago
Julien Duponchelle da81b49fdc
Delete the project on all node where the project is created
8 years ago
Julien Duponchelle a496aaab9e
Send node.updated event and tests are green
8 years ago
Julien Duponchelle 1eb77a0b3f
Fix docker support on 2.0
8 years ago
Julien Duponchelle a9b95eb242
If the compute node is remote do not send project path
8 years ago
grossmj c88c67e8ef Updates Ethernet hub schema.
8 years ago
grossmj 7a523990a6 Base for generic switch nodes. Ref #492.
8 years ago
grossmj 6cea6c9162 Some more (spring) cleaning.
8 years ago
grossmj f81d35cc29 Handlers: cleanup and fixes.
8 years ago
grossmj be1efe8327 Schemas review.
8 years ago
Julien Duponchelle 2857d9a070
Send a field status in the node object
8 years ago
Julien Duponchelle 5280644327
Return command_line and node_directory via the controller
8 years ago
grossmj ef7b4ef020 Fixes tests and some PEP8.
8 years ago
grossmj 483431438a Merge remote-tracking branch 'origin/2.0' into 2.0
8 years ago
grossmj 5a76f81271 Refactoring to use a common node class for all VMs and other (future) objects.
8 years ago
Julien Duponchelle 9ccb55206d
Cleanup code for getting the default project directory
8 years ago
Julien Duponchelle a0344576ba
Show version for debug
8 years ago
Julien Duponchelle c2da568543
Protect controller and compute about path outside project directory
8 years ago
Julien Duponchelle 390401000f
A client could not erase the local compute node config in the controller
8 years ago
Julien Duponchelle cd836f146e
Create the project on compute only when needed
8 years ago
Julien Duponchelle f98f6bf3ed
Close doesn't exists when stopping the capture
8 years ago
Julien Duponchelle 76b2ca2bc0
Return the full path to the capture
8 years ago
Julien Duponchelle 264254e657
Captures written in the captures directory on the controller
8 years ago
Julien Duponchelle 9a1eeb57e9
Controll of the project directory in the controller
8 years ago
Julien Duponchelle 1ce576c020
Stream pcap from compute to controller to client
8 years ago
Julien Duponchelle 1a22fb9250
Expose the capture status in controller link API
8 years ago
Julien Duponchelle 549a6280c0
Data link type is on the capture not on the link
8 years ago
Julien Duponchelle 04a1b2df3b
Method for start / stop capture on a link
8 years ago
Julien Duponchelle ee0f1eb5fb
Forward 503 error
8 years ago
Julien Duponchelle c8c61f2ae8
Add endpoint to list the compute nodes
8 years ago
Julien Duponchelle f5e5cf5059
Save the list of compute node
8 years ago
Julien Duponchelle 6b9e46950c
Update VPCS and delete VPCS via controller
8 years ago
Julien Duponchelle d7ed37ce02
Update and delete VM on controller
8 years ago
Julien Duponchelle 6c11ad5fa6
Reload VM
8 years ago
Julien Duponchelle 58d4a529d4
Rename hypervisor to compute
8 years ago
Julien Duponchelle 3185baff0d
Start / Stop / Suspend marche
8 years ago
Julien Duponchelle 2055cdea5e
/start /stop and /suspend API for VM via container
8 years ago
Julien Duponchelle bc14d5d78e
Notif forwarded from hypervisor to controller
8 years ago
Julien Duponchelle de61ed316c
The controller has a streaming API
8 years ago
Julien Duponchelle aa6c44a470
Fix crash when a n hypervisor return no body
8 years ago
Julien Duponchelle 757ee34dac
Support auth for network V2 hypervisors
8 years ago
Julien Duponchelle c0e452133d
Web interface for debbuging controller
8 years ago
Julien Duponchelle 7a095478fe
Success to add a dynamips with apiv2
8 years ago
Julien Duponchelle 8fed1d9b9f
API for deleting a link
8 years ago
Julien Duponchelle ed291da566
Rebuild doc
8 years ago
Julien Duponchelle 9062490be3
API for deleting a list
8 years ago
Julien Duponchelle 9771b33b68
Create link using UDP work
8 years ago
Julien Duponchelle 8cb5a6ec75
Typo
8 years ago
Julien Duponchelle 17c5d3048c
Cleanup
8 years ago
Julien Duponchelle 65099b9364
Link API should work now need to implement the client
8 years ago
Julien Duponchelle e3580d52c3
Dummy link api documentation
8 years ago
Julien Duponchelle abdda4d3b3
Link API (do nothing for the moment)
8 years ago
Julien Duponchelle 6fad82c61d
Rebuild documentation
8 years ago
Julien Duponchelle be4aa41dda
Create VPCS VM on controller
8 years ago
Julien Duponchelle 4326d412f9
API for creating a VM
8 years ago
Julien Duponchelle 65de1b7b5e
Default arg for post in controllers
8 years ago