mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-24 17:55:15 +00:00
Compare commits
554 Commits
Author | SHA1 | Date | |
---|---|---|---|
5dd0414ab3 | |||
e8353e68bb | |||
23c63bbd4d | |||
dadf11f69b | |||
3efe753eee | |||
f48420af58 | |||
79bca29b93 | |||
0e4865e049 | |||
26567d9164 | |||
a8177d7afa | |||
a393e7f723 | |||
0df997d232 | |||
630afc5469 | |||
3e3e1df051 | |||
3a1ba8f42d | |||
0a72e0db87 | |||
e3b3427cc6 | |||
dde2003168 | |||
cfe8e9e85c | |||
1699ce5d1c | |||
d0850927d0 | |||
745532bf23 | |||
78cf0309a0 | |||
851fcf5c71 | |||
a80355998d | |||
e54d574e47 | |||
fe60c414b9 | |||
efbf7728ea | |||
061af38b5a | |||
f48549a997 | |||
958ab2294c | |||
dd89b09f84 | |||
642536a070 | |||
860ca3b35d | |||
96a0b52cf8 | |||
7c90c513d0 | |||
fe59c937d5 | |||
b48f5df53f | |||
3e2e8e61f7 | |||
068077c594 | |||
e08aebf1f0 | |||
cfbcc1194d | |||
035a078b5e | |||
cf14deb2fa | |||
e1fe34ca07 | |||
d3e55520d9 | |||
4477cd4dfd | |||
967798a7de | |||
61acb939a4 | |||
8c11b649e5 | |||
b14e2e73ed | |||
2235a8158f | |||
9afe756462 | |||
135c529d4b | |||
ce219e81ea | |||
c2684f056c | |||
009677f019 | |||
9c3ee02797 | |||
50c8fe070d | |||
ace7b0c69f | |||
255dc7ed9b | |||
75ceffb458 | |||
21c2429aee | |||
8cc04f25e2 | |||
815dca101f | |||
022d76e88a | |||
2c0804d4ee | |||
b2c5e175d7 | |||
a7412d1c87 | |||
2171072ae4 | |||
8fcfed53ed | |||
df468bf2af | |||
8930b4c6e5 | |||
b4307e6035 | |||
6a87047c18 | |||
d918330472 | |||
8fde8789f1 | |||
aaa8c4895f | |||
66d5cb520d | |||
d2a7f724e3 | |||
c7015435c9 | |||
44efab109e | |||
98b201e9e5 | |||
1f4b87ae9c | |||
bc782b6896 | |||
4cae6b678a | |||
3a5a771b19 | |||
44bb912139 | |||
74e7201ea6 | |||
4f13c63a52 | |||
02ad98664f | |||
b654d78ea6 | |||
244a86bcbc | |||
1524493c33 | |||
e52b83be11 | |||
0c7a92b710 | |||
67c78ba2e3 | |||
9619827f44 | |||
5b645cd455 | |||
7d19312d44 | |||
81048f44d6 | |||
be35ad6874 | |||
897f7656da | |||
3d85bba9d4 | |||
dbd41e44f8 | |||
7269285b0f | |||
2a4ed9ba89 | |||
a567b394f3 | |||
d76bcf7078 | |||
fcd2c7b6d4 | |||
60bc386d6b | |||
e1c8df170a | |||
cdfce26b61 | |||
f415d38ccd | |||
6a8f220ff1 | |||
9e4cfaf787 | |||
4a2dfb0037 | |||
b538bd0a29 | |||
36210b10c6 | |||
fd623a5ad2 | |||
e5a7eb74ed | |||
daf7ed8c95 | |||
1f87d8222b | |||
90e3a8d612 | |||
c22229101f | |||
ee486b32bd | |||
7492899b95 | |||
807bea40d4 | |||
4e3eee33fc | |||
a7297ffca4 | |||
2806b7b286 | |||
b0783eeccc | |||
4fc29504f2 | |||
efae614af2 | |||
7523e9c4bc | |||
3dd5dbe0c1 | |||
e15d1cd350 | |||
fc7377e999 | |||
3fd86f5807 | |||
fc9d44011b | |||
3a1fd892ac | |||
3caba334c0 | |||
e2de872036 | |||
44fc87a24c | |||
2dc83d7894 | |||
211f48d981 | |||
3bb8cdafb2 | |||
e74eaa8ea8 | |||
8a028a6dce | |||
1cde787ffa | |||
81d77cabf9 | |||
37c76189dc | |||
6996b7094f | |||
2eead38cd8 | |||
283b08c2a1 | |||
fc6b6b5e63 | |||
108a659ca4 | |||
7683a79bb1 | |||
103be13ba4 | |||
cc89099ea5 | |||
2e68c90e25 | |||
92c9e48f18 | |||
a93f3b0576 | |||
86bd7b6058 | |||
6aa6d96ba0 | |||
5dd5c21374 | |||
136e483ace | |||
d69475cd44 | |||
ac508435c3 | |||
bb90c0ba52 | |||
a805b3c7c3 | |||
f0343124ec | |||
27582bb68c | |||
6d4529f445 | |||
16209a2b60 | |||
01be1b32c4 | |||
6514252a95 | |||
faed85e48b | |||
34c27bc18a | |||
47e8392ceb | |||
a0a7b0af10 | |||
0854c04687 | |||
0449a5b4ee | |||
b37a282475 | |||
253e113168 | |||
87838cb574 | |||
ec4e69b0d8 | |||
c96694105c | |||
46e5e8ac68 | |||
b33ba5f8ea | |||
8354beaa86 | |||
27f733736e | |||
90cdf14c2a | |||
ca3f6fb4b8 | |||
5fd842e54d | |||
bce9c61e41 | |||
f5e023222e | |||
a7d2391608 | |||
7d123f334f | |||
c2fbe4f313 | |||
ac10ba370a | |||
fa211a82eb | |||
d9b13fb0c5 | |||
54faaf5f6f | |||
873418dbbe | |||
7b8e4c1a60 | |||
08d4c1a000 | |||
6d577406d7 | |||
536c708c16 | |||
03af9bd621 | |||
5b839c22e9 | |||
3487b657a7 | |||
23c3d32e06 | |||
f557ec4bda | |||
cf3b668cf1 | |||
e8a35ac41f | |||
03f8c747cc | |||
53c4cba1f6 | |||
9e2759a3f2 | |||
9d8a8c95f6 | |||
86f1201276 | |||
4a55a367e3 | |||
cf17176bfc | |||
2e592d3199 | |||
b37f9eb4f0 | |||
7c6ffb3f49 | |||
4a05a4f7c5 | |||
114b137b02 | |||
66d5d34877 | |||
04303ca00c | |||
fd0770158c | |||
5747aba83c | |||
c8155aa14f | |||
5f874cca2c | |||
fc87871d46 | |||
699ecb7c89 | |||
8a8de1e2df | |||
d525f721a6 | |||
357de50a1b | |||
450c089b6d | |||
8eb060304a | |||
d112da400e | |||
fcd7dfbde6 | |||
5112f6fe56 | |||
557924e91a | |||
c6f28afb7c | |||
7f4eeb56fa | |||
339ed8ab57 | |||
5bdc239064 | |||
3eadbb9adb | |||
d17b4eb053 | |||
8f260e0a83 | |||
e0f0adf3c8 | |||
8e8b8bc5a5 | |||
4097bab565 | |||
c6f9ec3758 | |||
dc7a9ffc51 | |||
08423eff96 | |||
dadbb0ab09 | |||
cc34f45677 | |||
3132dbd9eb | |||
b33a1f5214 | |||
8f72356bab | |||
63e9558b10 | |||
5b19ef4862 | |||
799a2d376e | |||
0a6dc55645 | |||
617868402f | |||
c1a4bba101 | |||
3c18150cdb | |||
931018b877 | |||
6aa2afcf54 | |||
a7170da93f | |||
1d09f423e5 | |||
1e37101641 | |||
bcdac6c969 | |||
3ed055dbb9 | |||
7447b3190d | |||
1b6cefd82b | |||
ad850f3857 | |||
0ceec2629a | |||
bc5ec98cd5 | |||
a8e8eac0b4 | |||
5a1d313fca | |||
e7853a1be9 | |||
36dc264a6c | |||
efd5d82c88 | |||
ea9f0e52c8 | |||
6730cfe823 | |||
2e6366a766 | |||
e5bc7c7a66 | |||
e1c20e6a22 | |||
734ca7d2f9 | |||
bb8097a052 | |||
8973cc6fee | |||
c8c991af78 | |||
61fda93611 | |||
88c2353e2e | |||
c91a001729 | |||
b8a4785633 | |||
41af46cdc5 | |||
64a852f38f | |||
5c0d955156 | |||
c1c3a9ed80 | |||
0dd35e1cbe | |||
7235a312ab | |||
ae328e5c50 | |||
40cc5d76b3 | |||
b9e2b7945a | |||
eb6068c3d3 | |||
c538ec5937 | |||
e0b519eced | |||
cdcdba7411 | |||
2fe589b1a8 | |||
ca3f8d0b43 | |||
88cd804274 | |||
6a0345897d | |||
7dfb634376 | |||
823288dd0b | |||
ed656b7ab2 | |||
e74e66b203 | |||
93adef91d8 | |||
6fa27c6885 | |||
07049562a4 | |||
5616ab0e9a | |||
4f6cca0019 | |||
7044c8c9ff | |||
7913646ce3 | |||
78e1321bae | |||
c46a9da769 | |||
89394ba7e0 | |||
b8ee8d69c8 | |||
ef5c013561 | |||
8bbe7e8041 | |||
777361c23d | |||
c3d5abd104 | |||
39879ca92b | |||
5a86277a9f | |||
b87692acce | |||
d765d02f06 | |||
5bb6c51698 | |||
59488e8064 | |||
54e80d68f8 | |||
2a8911d19e | |||
8b7209ea78 | |||
7d48eba01b | |||
1e598d1890 | |||
2191c487b6 | |||
3ed49bbdd5 | |||
82f1ab2be2 | |||
7d30da5d4e | |||
4dc55a5af4 | |||
bdd980d6a2 | |||
51d6152a5c | |||
bdcadcc335 | |||
624a2c02c5 | |||
189ad994c8 | |||
a4245fcf44 | |||
812ff6b5d8 | |||
f338158654 | |||
e9fef928b0 | |||
5c5caf8418 | |||
aff5554528 | |||
2a159c06c5 | |||
c231e2bbf1 | |||
e24bfd5913 | |||
f2d5eb0b27 | |||
bef1b2e8f1 | |||
39419462db | |||
ddc5e8169e | |||
cd17ef6b12 | |||
3dc478385b | |||
851d6e1db8 | |||
facdf9c617 | |||
70d34befb9 | |||
8696a464ab | |||
5721dd3f30 | |||
bf38a8515e | |||
942cc09eda | |||
9baaf5685d | |||
961dbb5162 | |||
19a6157f64 | |||
18cfcaa081 | |||
87d42f4eb9 | |||
766456014b | |||
f31e46e8ed | |||
633cdef0bc | |||
fb6a95f7bb | |||
93fe66a253 | |||
e870b0cfa0 | |||
b4467d83bf | |||
ac5509f383 | |||
050f6876ce | |||
2172c25df6 | |||
48dae085aa | |||
bfee08459d | |||
8a6584d90f | |||
6870749e50 | |||
3070a68273 | |||
bda36081a9 | |||
930e7089db | |||
04220846b3 | |||
694a4e8068 | |||
7ba351c888 | |||
ae3e25b03b | |||
fa1450cb24 | |||
8e5f7d0838 | |||
31d1696215 | |||
078a6d8d34 | |||
ecba758c58 | |||
6190b9c189 | |||
c88886911e | |||
56d91b648c | |||
1b0f5c63b8 | |||
a6d085bf61 | |||
b0f45035a9 | |||
273a711459 | |||
c3aecf935f | |||
629443a5e5 | |||
2da581139c | |||
1a90305baa | |||
effbe59414 | |||
8b9f22c30c | |||
c9ceeee9de | |||
78e030b7ab | |||
456a28304d | |||
11321383c5 | |||
d90a8fa482 | |||
2962649dc8 | |||
d9b93ccd66 | |||
37e21f2a3d | |||
c72ae1bfe7 | |||
54014ccd39 | |||
b4434b5134 | |||
691c2dfd8e | |||
36de30e25e | |||
3de04d6e76 | |||
51ef5d8c90 | |||
0d687e62ad | |||
0bf6ed52cd | |||
b152360c5b | |||
722028b2d2 | |||
25a992a870 | |||
c50e80b2d3 | |||
5729d37992 | |||
7302f65ffe | |||
152807e654 | |||
3518a781e9 | |||
f3a87d76ef | |||
57cdef6b02 | |||
d2d5f003f8 | |||
540ffdf5f3 | |||
5fb2a462c2 | |||
a9b76c9656 | |||
838680cb40 | |||
85136bc2e4 | |||
6d150bb62c | |||
3afe85ba3c | |||
57ba7ab801 | |||
b755840a27 | |||
a8294c3de8 | |||
878aee6e90 | |||
9dc6f0f486 | |||
62cd5e4aa3 | |||
18835974fb | |||
ab2af5ceab | |||
fdd1084714 | |||
03a134af75 | |||
5edb631b00 | |||
ec6fdb7324 | |||
7f621ed5dd | |||
8f33d9ab79 | |||
b7e1a56056 | |||
11c7f35ea2 | |||
b92f881921 | |||
ef5714bd3e | |||
4f1b738ef5 | |||
cfe13e1929 | |||
935ca17d7a | |||
644616b69c | |||
84da9b4c23 | |||
7528152475 | |||
815820f692 | |||
2564740665 | |||
42f409d5f9 | |||
aae37034e1 | |||
132bc87081 | |||
25c4207661 | |||
8d22f2930e | |||
ac05db5d1b | |||
80e361ff2e | |||
541afe9660 | |||
bbfd56606c | |||
4036e519a7 | |||
9fd5e4cbc9 | |||
cb78eb4ee3 | |||
8712866489 | |||
1566d7f12a | |||
cc6f4c0510 | |||
73c31b4b87 | |||
c608a4ab38 | |||
c5290cfec6 | |||
34f5a6f82c | |||
78c154e376 | |||
a571b1a2f8 | |||
55563b9808 | |||
5409d9c3f8 | |||
95f864c871 | |||
a62b791c68 | |||
bc0e4c1174 | |||
0997998064 | |||
c8b46bdcab | |||
2ddb329a90 | |||
1b84874762 | |||
7c318d477d | |||
490576fedc | |||
31ed2a4c96 | |||
6a015fffeb | |||
08bafc2dcc | |||
cb6f94bc24 | |||
d37d3e7d77 | |||
2c0fb0d016 | |||
233a5fbed4 | |||
84a6ed7684 | |||
1d5029e4e2 | |||
d60597ca0d | |||
886329a978 | |||
0dc38a3970 | |||
9ef334331e | |||
5e2b619305 | |||
fea77398e7 | |||
99ee40df3d | |||
21849656d1 | |||
5036079deb | |||
6017ebbd97 | |||
e3974377ed | |||
5a399b90fe | |||
583327ad33 | |||
1ab9ca2333 | |||
5672b4b748 | |||
aee7208f7b | |||
635e163954 | |||
99f817392d | |||
51bf979284 | |||
2a840da462 | |||
8d86d959de | |||
b0567772f7 | |||
5e02a9d450 | |||
e892e5dfab | |||
afcd27f348 | |||
842e2c7fbf | |||
dc6756d5ae | |||
5204cec9e6 | |||
d901efae51 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -53,3 +53,7 @@ docs/_build
|
||||
vpcs.hist
|
||||
startup.vpcs
|
||||
.gns3_shell_history
|
||||
|
||||
# Virtualenv
|
||||
env
|
||||
.ropeproject
|
||||
|
38
.travis.yml
38
.travis.yml
@ -1,12 +1,30 @@
|
||||
language: python
|
||||
python:
|
||||
- '3.4'
|
||||
- '3.5'
|
||||
- '3.6'
|
||||
sudo: false
|
||||
cache: pip
|
||||
sudo: required
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
install:
|
||||
- python setup.py install
|
||||
- pip install -rdev-requirements.txt
|
||||
- sed -e 's/${PYTHON_VERSION}/'${PYTHON_VERSION}/g DockerfileTests.tpl > /tmp/DockerfileTests
|
||||
- docker-compose build
|
||||
|
||||
script:
|
||||
- py.test -v -s tests
|
||||
- docker-compose run tests
|
||||
|
||||
before_deploy:
|
||||
- sudo pip install twine
|
||||
- sudo pip install urllib3[secure]
|
||||
|
||||
deploy:
|
||||
provider: pypi
|
||||
user: noplay
|
||||
password:
|
||||
secure: Fa66zp8ML4oSGwzkUMZi07MIYfO3tbS5gHFUaLN2mk2MBknhCjDYexmFJqT//sC/+xqv6sSJE6rz1EPoy/THbxj8R96ZgIyiUZIbDCbzgdy92d7J/eusrDoNdpApBLke8NqQqtFETb3addMZZNofQ3IDANFD2m2jY+KECU8z8NI=
|
||||
on:
|
||||
tags: true
|
||||
repo: GNS3/gns3-server
|
||||
|
||||
env:
|
||||
matrix:
|
||||
- PYTHON_VERSION=3.4
|
||||
- PYTHON_VERSION=3.5
|
||||
- PYTHON_VERSION=3.6
|
||||
|
259
CHANGELOG
259
CHANGELOG
@ -1,5 +1,264 @@
|
||||
# Change Log
|
||||
|
||||
## 2.1.1 22/12/2017
|
||||
|
||||
* Protect variable replacement for Qemu options. Escape double quotes.
|
||||
* Add proper exception when cannot find tunnel on QEMU, Fixes: #1241
|
||||
* Increase timeout for creation of image, Ref. #2239
|
||||
* Protect variable replacement for Qemu options.
|
||||
* Do not overwrites persistent Docker volumes. Fixes #2358.
|
||||
* Allow users to see an error when the server cannot stream a PCAP file.
|
||||
* Fix issue with Qemu + SPICE when IPv4 is not enabled.
|
||||
* Warn users if the GNS3 VM and local server are not in the same subnet. Fixes #1231.
|
||||
* Add missing appliance files.
|
||||
* Update appliance files.
|
||||
* Fix auto idle-pc from preferences.
|
||||
* Keep consistance of aiohttp.web.HTTPForbidden() execution
|
||||
* Make sure connected links are removed when a node is deleted.
|
||||
* Validate idle-pc values for auto idle-pc feature.
|
||||
* Fix error when updating packet filter on stopped Docker link. Fixes #1229.
|
||||
* Remotely close telnet console. Ref #2330
|
||||
* EthernetSwitch closing connections, Ref: gui/#2330
|
||||
* Export files from remote server, Fixes: gui/#2271
|
||||
* New option: require KVM. If false, Qemu VMs will not be prevented to run without KVM.
|
||||
* Implement variable replacement for Qemu VM options.
|
||||
* Avoid duplicate "-nographic" option.
|
||||
* Show qemu-img stdout in case of an error.
|
||||
* Use the correct NVRAM amount when pushing private config to IOU.
|
||||
* Check and fix corrupt Qemu disk images. Fixes #2301.
|
||||
* Update warning messages when connecting to non custom adapter for VMware VMs.
|
||||
* Fix "Can't use VirtualBox VM when an interface is managed by VirtualBox". Fixes #2335.
|
||||
* Add low disk space warning when creating a new project.
|
||||
|
||||
## 2.1.0 09/11/2017
|
||||
|
||||
* Fix typo in vcpus on VirtualBoxVM, fixes: #1213
|
||||
|
||||
## 2.1.0rc4 07/11/2017
|
||||
|
||||
* Fix GNS3VM vCPUs control on VMware, fixes: #2324
|
||||
* Fix typo in sample gns3_server.conf. Fixes #1210.
|
||||
* Warning for getting endpoint of compute
|
||||
* Enable debug mode on async loop only in dev/debug mode
|
||||
* Add warning when using IOU with a hostname length above 15 characters.
|
||||
* Improve VMware VMs discovery process. Ref #1201.
|
||||
* Improve error message when IOU VM process is unexpectedly stopped.
|
||||
* Improved error message when the number of network adapters is above the maximum for VirtualBox VMs. Better support for potential future chipsets in addition of PIIX3 and ICH9.
|
||||
* Added localhost and gns3.github.io CORS
|
||||
|
||||
## 2.1.0rc3 19/10/2017
|
||||
|
||||
* Set vhv.enable before run for VMWare 14. Fixes #1184
|
||||
* Tweak how VMware VMs are found with fallback to search in the default location for VMs.
|
||||
* QEMU: fix logging of base mac address when creating a new node
|
||||
* Sync appliance files.
|
||||
* Fix creation of an VMware VM failed with invalid JSON. Fixes #2282.
|
||||
* Endpoint for obtaining direct action on compute
|
||||
* Fix IOU detection of layer 1 keepalive support. Fixes #1183.
|
||||
* Fixes path normalization during file upload on nodes (Fixes: #2276)
|
||||
|
||||
## 2.1.0rc2 04/10/2017
|
||||
|
||||
* Don't create directory structure during json dump. Fixes #2270
|
||||
* Add more information when qemu-img fails.
|
||||
* Fix issue with multidict when upgrading GNS3 VM to use dev channel.
|
||||
* Restore file permissions fails for volumes with soft links. Fixes #1180.
|
||||
* Use RAW sockets by default on Linux.
|
||||
* Add missing https console keyword in JSON schema. Fixes #1179.
|
||||
* Allow projects to be opened even when a node port is already used.
|
||||
|
||||
## 2.1.0rc1 13/09/2017
|
||||
|
||||
* Fix NAT node not working on Windows. Fixes #1163.
|
||||
* Do not prevent a project to be deleted. Fixes #2237.
|
||||
|
||||
## 2.1.0b2 05/09/2017
|
||||
|
||||
* Round-robin nodes across all available compute resources. Fixes #1165.
|
||||
* Try to improve error reporting when streaming a PCAP file. Ref #2235.
|
||||
* Use Npcap DLL on Windows when checking for uBridge version.
|
||||
* Fixes running switch console inside PyCharm terminal (Ref. #1172)
|
||||
* Load meta of the project on loading time (Fixes #2225)
|
||||
* Added checking if NIO exists (Fixes #1160)
|
||||
* Fixes NAT node not working on Windows (#1163)
|
||||
* Fixes loading project when link_id is not set (#1159)
|
||||
* Return platform value on appliances list (Fixes #2211)
|
||||
* Fixes not known category in Appliances (Fixes #1156)
|
||||
|
||||
## 2.1.0b1 04/08/2017
|
||||
|
||||
* Sync appliances
|
||||
* Interface starting with gns3 are not display by default in the cloud
|
||||
* Catch error when something that is not the GNS3 server answer to virtualbox requests
|
||||
* Catch KeyError: <aiohttp.connector._TransportPlaceholder
|
||||
* Add a warning when you try to load and the server is not started with --local
|
||||
* Sync appliances
|
||||
* Fix permission on exited container
|
||||
|
||||
## 2.1.0a2 31/07/2017
|
||||
|
||||
* Handle invalid appliances files
|
||||
* Sync appliances
|
||||
* Fix naming of node with a number in the name
|
||||
* Fix race condition in startup of capture
|
||||
* Fix bug when exporting debug information with multiple remote servers
|
||||
* Fix OSError when uploading images
|
||||
* Fix an error when a symbol is not available on filesystem
|
||||
* Fix ServerDisconnectedError for stop_all
|
||||
* This fix the images always included in portable project
|
||||
* Fix support of docker appliance with a usage
|
||||
* Duplicate API for ATM, Ethernet Hub and Frame Relay Switch
|
||||
* History support for console and telnet application
|
||||
* Fix IOU image upload
|
||||
* Duplicate IOU
|
||||
* Support duplicate for Docker
|
||||
* Duplicate support for qemu
|
||||
|
||||
## 2.1.0a1 24/07/2017
|
||||
|
||||
* Packet filtering
|
||||
* Suspend a link
|
||||
* Duplicate a node
|
||||
* Move config to central server
|
||||
* Appliance templates on server
|
||||
|
||||
## 2.0.3 13/06/2017
|
||||
|
||||
* Fixes #1068 - handle zipfile encoding issues at project duplication
|
||||
* Fix: #1066 - Catching parsing errors at linked vbox file
|
||||
* Ignoring virtualenv directory at gitignore
|
||||
* Escaping VPCS name in regex #1067
|
||||
* Fix racecondition when listing interface
|
||||
* Fix Qemu disk creation with unicode characters not supported by local filesystem #1058 (#1063)
|
||||
* Fix when config file doesn't have computes section (#1062)
|
||||
* Check aiohttp version
|
||||
|
||||
## 2.0.2 30/05/2017
|
||||
|
||||
* Set correct permission on ubridge when doing a remote installation
|
||||
* Remote install script should be totally non interactive
|
||||
* Duplicate project on remote server use UUID
|
||||
* Fix import of some old topologies from 1.3
|
||||
* Fix error in logging of error during starting GNS3 VM
|
||||
* Fix an error when logging Docker container fail to start
|
||||
* Use docker version in error message of outdated docker installation
|
||||
* Support images created by "docker commit". Fixes #1039
|
||||
* Do not wait auto start to finish in order to complete project opening
|
||||
* Improve logging for remote server connection lost
|
||||
|
||||
## 2.0.1 16/05/2017
|
||||
|
||||
* Handle HTTP 504 errors from compute node
|
||||
* When connecting to a compute node ask for qemu images list
|
||||
* When importing portable project NAT node is loaded on GNS3 VM
|
||||
* Fix port numbering for Wic slot 1 & 2
|
||||
* Fixes issue with connections when loading an ATM switch.
|
||||
* Fixes ATM mapping.
|
||||
* Fixes Frame-relay VC mapping.
|
||||
* Fix export project is looking into the wrong directory
|
||||
* Fix a race condition in logging when ubridge exit fast
|
||||
* Fix conversion issue with old topology with C3640
|
||||
* Fix error when you have a directory in your symbols directory
|
||||
* Catch VMWare errors when getting status after GNS3 VM start
|
||||
* Make sure upstart LANG is utf8
|
||||
* Always install typing module (compat with python 3.4 on ubuntu)
|
||||
* Fix KeyError: 'filename'
|
||||
* Catch missing function listxattr on some Linux host.
|
||||
* Sort image list
|
||||
* Handle a race condition at project closing
|
||||
* Fix unicode error when reading ios configuration
|
||||
* Fix AttributeError: 'NoneType' object has no attribute 'send'
|
||||
* Fix a conversion issue with some 1.3 topologies
|
||||
* Fix an error with ethernetswitch when ethertype is null
|
||||
* Raise an error if we can't create the dynamips configuration directory
|
||||
* Catch timeout error when loading virtualbox VM
|
||||
* Handle broken compute at server startup
|
||||
* Catch error when we can't backup the topology
|
||||
* Catch error when writting the topology file on read only device
|
||||
* Catch a race condition in VirtualBox when editing and linking
|
||||
* Fix a race condition when editing a qemu vm and connecting it
|
||||
* Docker aux console is a VT100 terminal
|
||||
|
||||
## 2.0.0 02/05/2017
|
||||
|
||||
* Fix connection to websocket with last docker release
|
||||
* Lower docker requirements in tests also
|
||||
* Docker minimum api is 1.25
|
||||
* Handling server disconnect error when docker daemon die
|
||||
* Handle some invalid SVG images
|
||||
|
||||
## 2.0.0rc4 20/04/2017
|
||||
|
||||
* Fix a race condition when handling error at project opening
|
||||
* Fix an issue with editing network on windows
|
||||
* Fix windows tests
|
||||
* Catch timeout error on docker
|
||||
* typing is already included in Py >= 3.5 (#979)
|
||||
* Fix import of some old topologies
|
||||
* Fix AttributeError: 'NoneType' object has no attribute 'returncode'
|
||||
* Fix ghost vmware vms
|
||||
* Fix required field in schema not use
|
||||
* Catch error and log them when we can't write the config
|
||||
* Fix bridge 'bridge0' already exist when we have trouble with a container
|
||||
* Catch an error at startup when the remote GNS3 VM is not a real GNS3 VM
|
||||
* Fixes Qemu sata option. Ref #875.
|
||||
* Catch GNS3 VM loading error at startup
|
||||
|
||||
## 1.5.4 13/04/2017
|
||||
|
||||
* Fix VPCS tests for recent version
|
||||
* Freeze server dependencies to the same version used for 1.5.3
|
||||
* Fix 1.5: Error message, when stopping IOU router #769
|
||||
* Drop color logging for remote install, seem to fail in some conditions
|
||||
* Cleanup the remote install script
|
||||
* Support for Xenial in remote install
|
||||
|
||||
## 2.0.0rc3 31/03/2017
|
||||
|
||||
* Support IOU image without .bin at the end
|
||||
* Allow to change some properties of an already connected ethernet switch
|
||||
* Ensure we start only one ubridge
|
||||
* Catch some broken hostname for compute node
|
||||
* Fix limit of 20 docker containers
|
||||
* Fix race conditions in creation of Frame Relay Switch
|
||||
* Fix conversion of project from 1.X with custom symbol for cloud
|
||||
* Dissallow parallel pull of docker images
|
||||
* Add a scripts for running current dev version on GNS3 VM
|
||||
* Fix a crash with missing size in the svg files
|
||||
* Fix an utf8 error in auth code
|
||||
* Improve vmrun timeout message
|
||||
* Support utf-8 characters in user and password for auth
|
||||
* Handle password configuration change on remote servers
|
||||
* Fix Bug when delete fake-running VMBox
|
||||
* Fix Can't connect to compute local on some computers
|
||||
* Add a modification uuid to settings returned by the server
|
||||
* Check python version in setup.py only for install
|
||||
* Fix Session is closed when listing docker images
|
||||
* Cleanup docker source code
|
||||
* Use aiohttp session for docker queries
|
||||
* Escape special characters from SVG text
|
||||
* Fix some port short name display issues
|
||||
* Catch server disconnected errors from computes
|
||||
* Generate a node uuid if the uuid is missing in the .gns3
|
||||
* Ensure to dump project before exporting it
|
||||
* Fix return code check for SIGSEGV of IOU images
|
||||
* Prevent vmname change for VirtualBox linked clone
|
||||
* Upgrade to aiohttp 1.3.5 to solve issue with big file
|
||||
* Handle some invalid svg
|
||||
* Try to fix some 1.3 topology with corrupted data
|
||||
* Fix ComputeError: Can't connect to Main server
|
||||
* Catch error when the server as trouble to access to itself
|
||||
* Catch a timeout error in docker
|
||||
* Lock yarl version because 0.10 is not compatible with aiohttp 1.3
|
||||
* Raise error if image are not avaible on main server during export
|
||||
* Fix a race condition when killing ubridge
|
||||
* If your settings from 1.X are broken with skip them at import
|
||||
* Catch a permission error on symbols
|
||||
* Catch unicode error when you try to duplicate a project with invalid characters
|
||||
* Catch error when you try to put an invalid server url
|
||||
* Fix an error when handling ubridge errors
|
||||
* Fix crash when handling an error in project creation
|
||||
|
||||
## 2.0.0rc2 10/03/2017
|
||||
|
||||
* Drop color logging for remote install, seem to fail in some conditions
|
||||
|
15
DockerfileTests.tpl
Normal file
15
DockerfileTests.tpl
Normal file
@ -0,0 +1,15 @@
|
||||
FROM python:${PYTHON_VERSION}
|
||||
|
||||
RUN pip install -U setuptools pip
|
||||
|
||||
ADD requirements.txt /server/requirements.txt
|
||||
ADD dev-requirements.txt /server/dev-requirements.txt
|
||||
|
||||
RUN pip install -r/server/dev-requirements.txt
|
||||
|
||||
RUN useradd -ms /bin/bash gns3
|
||||
|
||||
USER gns3
|
||||
|
||||
ADD . /server
|
||||
WORKDIR /server
|
@ -22,7 +22,7 @@ master
|
||||
master is the next stable release, you can test it in your day to day activities.
|
||||
Bug fixes or small improvements pull requests go here.
|
||||
|
||||
1.x (1.4 for example)
|
||||
2.x (2.1 for example)
|
||||
********
|
||||
Next major release
|
||||
|
||||
@ -216,3 +216,8 @@ If you want test coverage:
|
||||
.. code:: bash
|
||||
|
||||
py.test --cov-report term-missing --cov=gns3server
|
||||
|
||||
Security issues
|
||||
----------------
|
||||
Please contact us using contact informations available here:
|
||||
http://docs.gns3.com/1ON9JBXSeR7Nt2-Qum2o3ZX0GU86BZwlmNSUgvmqNWGY/index.html
|
||||
|
21
appveyor.yml
Normal file
21
appveyor.yml
Normal file
@ -0,0 +1,21 @@
|
||||
version: '{build}-{branch}'
|
||||
|
||||
image: Visual Studio 2015
|
||||
|
||||
platform: x64
|
||||
|
||||
environment:
|
||||
PYTHON: "C:\\Python36-x64"
|
||||
DISTUTILS_USE_SDK: "1"
|
||||
API_TOKEN:
|
||||
secure: VEKn4bYH3QO0ixtQW5ni4Enmn8cS1NlZV246ludBDgQ=
|
||||
|
||||
install:
|
||||
- cinst nmap
|
||||
- "%PYTHON%\\python.exe -m pip install -r dev-requirements.txt"
|
||||
- "%PYTHON%\\python.exe -m pip install -r win-requirements.txt"
|
||||
|
||||
build: off
|
||||
|
||||
test_script:
|
||||
- "%PYTHON%\\python.exe -m pytest -v"
|
@ -11,9 +11,13 @@ certkey=/home/gns3/.config/GNS3/ssl/server.key
|
||||
|
||||
; Path where devices images are stored
|
||||
images_path = /home/gns3/GNS3/images
|
||||
|
||||
; Path where user projects are stored
|
||||
projects_path = /home/gns3/GNS3/projects
|
||||
|
||||
; Path where user appliances are stored
|
||||
appliances_path = /home/gns3/GNS3/appliances
|
||||
|
||||
; Option to automatically send crash reports to the GNS3 team
|
||||
report_errors = True
|
||||
|
||||
@ -24,7 +28,7 @@ console_end_port_range = 10000
|
||||
; First port of the range allocated for inter-device communication. Two ports are allocated per link.
|
||||
udp_start_port_range = 10000
|
||||
; Last port of the range allocated for inter-device communication. Two ports are allocated per link
|
||||
udp_start_end_range = 20000
|
||||
udp_end_port_range = 20000
|
||||
; uBridge executable location, default: search in PATH
|
||||
;ubridge_path = ubridge
|
||||
|
||||
@ -59,3 +63,5 @@ license_check = True
|
||||
[Qemu]
|
||||
; !! Remember to add the gns3 user to the KVM group, otherwise you will not have read / write permssions to /dev/kvm !!
|
||||
enable_kvm = True
|
||||
; Require KVM to be installed in order to start VMs
|
||||
require_kvm = True
|
@ -1,7 +1,7 @@
|
||||
-rrequirements.txt
|
||||
|
||||
sphinx==1.5.3
|
||||
pytest==3.0.6
|
||||
sphinx==1.6.2
|
||||
pytest==3.1.1
|
||||
pep8==1.7.0
|
||||
pytest-catchlog==1.2.2
|
||||
pytest-timeout==1.2.0
|
||||
|
4
docker-compose.yml
Normal file
4
docker-compose.yml
Normal file
@ -0,0 +1,4 @@
|
||||
tests:
|
||||
build: .
|
||||
dockerfile: /tmp/DockerfileTests
|
||||
command: py.test -v -s tests
|
14
docs/api/examples/compute_delete_projectsprojectid.txt
Normal file
14
docs/api/examples/compute_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:23 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/5515357a-a5c1-47c7-b47a-fa004ed94bee'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/5515357a-a5c1-47c7-b47a-fa004ed94bee HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:00 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6558b3be-937a-46ed-aa2c-d55b2efbfae3/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6558b3be-937a-46ed-aa2c-d55b2efbfae3/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:06:59 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/0febefd7-5312-47ce-912e-30a68f3e206b/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/0febefd7-5312-47ce-912e-30a68f3e206b/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:05 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b3d3552b-c851-4c54-88ef-eca874685de5'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b3d3552b-c851-4c54-88ef-eca874685de5 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:10 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e34b2c0-6337-49ab-a409-745cceb673c5/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e34b2c0-6337-49ab-a409-745cceb673c5/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:13 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/b37db9cd-b92c-4f24-8706-1b30d3162d6d'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/b37db9cd-b92c-4f24-8706-1b30d3162d6d HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:17 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d8c320f4-2877-484c-8f1c-f975527e0560/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d8c320f4-2877-484c-8f1c-f975527e0560/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:16 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/31176da3-3e99-4b29-9040-d643abcefd4e'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/31176da3-3e99-4b29-9040-d643abcefd4e HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:29 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/08907920-9653-45e4-b5c6-94bbca78b809/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/08907920-9653-45e4-b5c6-94bbca78b809/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:32 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/aaf3a28e-833c-449b-9670-b514ee746549/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/aaf3a28e-833c-449b-9670-b514ee746549/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:39 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b9adab99-ab1b-4a1d-8b45-fd3510f160bc'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b9adab99-ab1b-4a1d-8b45-fd3510f160bc HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:43 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e5994674-7209-4ee0-af3a-b7f77e344de2/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e5994674-7209-4ee0-af3a-b7f77e344de2/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:41 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
33
docs/api/examples/compute_get_capabilities.txt
Normal file
33
docs/api/examples/compute_get_capabilities.txt
Normal file
@ -0,0 +1,33 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/capabilities'
|
||||
|
||||
GET /v2/compute/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 347
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:06:59 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/capabilities
|
||||
|
||||
{
|
||||
"node_types": [
|
||||
"cloud",
|
||||
"ethernet_hub",
|
||||
"ethernet_switch",
|
||||
"nat",
|
||||
"vpcs",
|
||||
"virtualbox",
|
||||
"dynamips",
|
||||
"frame_relay_switch",
|
||||
"atm_switch",
|
||||
"qemu",
|
||||
"vmware",
|
||||
"docker",
|
||||
"iou"
|
||||
],
|
||||
"platform": "linuxdebian",
|
||||
"version": "2.1.0dev1"
|
||||
}
|
22
docs/api/examples/compute_get_iouimages.txt
Normal file
22
docs/api/examples/compute_get_iouimages.txt
Normal file
@ -0,0 +1,22 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/iou/images'
|
||||
|
||||
GET /v2/compute/iou/images HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 149
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:14 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/iou/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "iou.bin",
|
||||
"filesize": 7,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"path": "iou.bin"
|
||||
}
|
||||
]
|
178
docs/api/examples/compute_get_networkinterfaces.txt
Normal file
178
docs/api/examples/compute_get_networkinterfaces.txt
Normal file
@ -0,0 +1,178 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/network/interfaces'
|
||||
|
||||
GET /v2/compute/network/interfaces HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 3969
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:19 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/network/interfaces
|
||||
|
||||
[
|
||||
{
|
||||
"id": "bridge0",
|
||||
"ip_address": "",
|
||||
"mac_address": "d2:00:1b:c0:17:80",
|
||||
"name": "bridge0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "en0",
|
||||
"ip_address": "",
|
||||
"mac_address": "3c:07:54:78:07:cc",
|
||||
"name": "en0",
|
||||
"netmask": "",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "en1",
|
||||
"ip_address": "192.168.84.156",
|
||||
"mac_address": "68:a8:6d:4a:c3:16",
|
||||
"name": "en1",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "en2",
|
||||
"ip_address": "",
|
||||
"mac_address": "d2:00:1b:c0:17:80",
|
||||
"name": "en2",
|
||||
"netmask": "",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "fw0",
|
||||
"ip_address": "",
|
||||
"mac_address": "3c:07:54:ff:fe:bc:01:78",
|
||||
"name": "fw0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "lo0",
|
||||
"ip_address": "127.0.0.1",
|
||||
"mac_address": "",
|
||||
"name": "lo0",
|
||||
"netmask": "255.0.0.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "p2p0",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:a8:6d:4a:c3:16",
|
||||
"name": "p2p0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "utun0",
|
||||
"ip_address": "",
|
||||
"mac_address": "",
|
||||
"name": "utun0",
|
||||
"netmask": "",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet1",
|
||||
"ip_address": "172.16.16.1",
|
||||
"mac_address": "00:50:56:c0:00:01",
|
||||
"name": "vmnet1",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet10",
|
||||
"ip_address": "172.16.7.1",
|
||||
"mac_address": "00:50:56:c0:00:0a",
|
||||
"name": "vmnet10",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet2",
|
||||
"ip_address": "172.16.0.1",
|
||||
"mac_address": "00:50:56:c0:00:02",
|
||||
"name": "vmnet2",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet3",
|
||||
"ip_address": "172.16.1.1",
|
||||
"mac_address": "00:50:56:c0:00:03",
|
||||
"name": "vmnet3",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet4",
|
||||
"ip_address": "172.16.2.1",
|
||||
"mac_address": "00:50:56:c0:00:04",
|
||||
"name": "vmnet4",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet5",
|
||||
"ip_address": "172.16.3.1",
|
||||
"mac_address": "00:50:56:c0:00:05",
|
||||
"name": "vmnet5",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet6",
|
||||
"ip_address": "172.16.4.1",
|
||||
"mac_address": "00:50:56:c0:00:06",
|
||||
"name": "vmnet6",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet7",
|
||||
"ip_address": "172.16.5.1",
|
||||
"mac_address": "00:50:56:c0:00:07",
|
||||
"name": "vmnet7",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet8",
|
||||
"ip_address": "192.168.229.1",
|
||||
"mac_address": "00:50:56:c0:00:08",
|
||||
"name": "vmnet8",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet9",
|
||||
"ip_address": "172.16.6.1",
|
||||
"mac_address": "00:50:56:c0:00:09",
|
||||
"name": "vmnet9",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
]
|
24
docs/api/examples/compute_get_projects.txt
Normal file
24
docs/api/examples/compute_get_projects.txt
Normal file
@ -0,0 +1,24 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects'
|
||||
|
||||
GET /v2/compute/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 198
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:22 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
[
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
|
||||
}
|
||||
]
|
18
docs/api/examples/compute_get_projectsprojectid.txt
Normal file
18
docs/api/examples/compute_get_projectsprojectid.txt
Normal file
@ -0,0 +1,18 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/40010203-0405-0607-0809-0a0b0c0d0e02'
|
||||
|
||||
GET /v2/compute/projects/40010203-0405-0607-0809-0a0b0c0d0e02 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 80
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:21 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "40010203-0405-0607-0809-0a0b0c0d0e02"
|
||||
}
|
@ -0,0 +1,139 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6e8d100d-88bb-4f15-8750-d4fa9c614314'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6e8d100d-88bb-4f15-8750-d4fa9c614314 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 2951
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:06:59 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
||||
{
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "bridge0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en1",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en2",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "fw0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "lo0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "p2p0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "utun0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet10",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet8",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet9",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"name": "Cloud 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/builtin/6e8d100d-88bb-4f15-8750-d4fa9c614314",
|
||||
"node_id": "6e8d100d-88bb-4f15-8750-d4fa9c614314",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "en0",
|
||||
"name": "en0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en1",
|
||||
"name": "en1",
|
||||
"port_number": 1,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en2",
|
||||
"name": "en2",
|
||||
"port_number": 2,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "utun0",
|
||||
"name": "utun0",
|
||||
"port_number": 3,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3719606a-bb6a-4a9d-b58d-6ca9e81d4cc2'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3719606a-bb6a-4a9d-b58d-6ca9e81d4cc2 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 640
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:08 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 2,
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/iou/3719606a-bb6a-4a9d-b58d-6ca9e81d4cc2",
|
||||
"node_id": "3719606a-bb6a-4a9d-b58d-6ca9e81d4cc2",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/82feae22-4a86-4664-ac99-5b694c99bfd8'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/82feae22-4a86-4664-ac99-5b694c99bfd8 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 335
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:15 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "82feae22-4a86-4664-ac99-5b694c99bfd8",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "virbr0",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c3f10549-f4ca-45cb-9831-6aeda28c5ffa'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c3f10549-f4ca-45cb-9831-6aeda28c5ffa HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 1468
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:27 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"bios_image": "",
|
||||
"bios_image_md5sum": null,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "",
|
||||
"hda_disk_image_md5sum": null,
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "",
|
||||
"hdb_disk_image_md5sum": null,
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:5f:fa:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/c3f10549-f4ca-45cb-9831-6aeda28c5ffa",
|
||||
"node_id": "c3f10549-f4ca-45cb-9831-6aeda28c5ffa",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp47ntn6ne/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2901742a-3226-4ac7-96a1-85be8dd885d5'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2901742a-3226-4ac7-96a1-85be8dd885d5 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 465
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:37 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VMTEST",
|
||||
"node_directory": null,
|
||||
"node_id": "2901742a-3226-4ac7-96a1-85be8dd885d5",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VMTEST"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/ccb9b060-d1b7-4c90-a567-4fdb15ffe05f'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/ccb9b060-d1b7-4c90-a567-4fdb15ffe05f HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 428
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:39 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/ccb9b060-d1b7-4c90-a567-4fdb15ffe05f",
|
||||
"node_id": "ccb9b060-d1b7-4c90-a567-4fdb15ffe05f",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "stopped"
|
||||
}
|
32
docs/api/examples/compute_get_qemubinaries.txt
Normal file
32
docs/api/examples/compute_get_qemubinaries.txt
Normal file
@ -0,0 +1,32 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/binaries' -d '{"archs": ["i386"]}'
|
||||
|
||||
GET /v2/compute/qemu/binaries HTTP/1.1
|
||||
{
|
||||
"archs": [
|
||||
"i386"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 212
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:32 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/qemu/binaries
|
||||
|
||||
[
|
||||
{
|
||||
"path": "/tmp/x86_64",
|
||||
"version": "2.2.0"
|
||||
},
|
||||
{
|
||||
"path": "/tmp/alpha",
|
||||
"version": "2.1.0"
|
||||
},
|
||||
{
|
||||
"path": "/tmp/i386",
|
||||
"version": "2.1.0"
|
||||
}
|
||||
]
|
19
docs/api/examples/compute_get_qemucapabilities.txt
Normal file
19
docs/api/examples/compute_get_qemucapabilities.txt
Normal file
@ -0,0 +1,19 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/capabilities'
|
||||
|
||||
GET /v2/compute/qemu/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 39
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:35 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/qemu/capabilities
|
||||
|
||||
{
|
||||
"kvm": [
|
||||
"x86_64"
|
||||
]
|
||||
}
|
18
docs/api/examples/compute_get_version.txt
Normal file
18
docs/api/examples/compute_get_version.txt
Normal file
@ -0,0 +1,18 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/version'
|
||||
|
||||
GET /v2/compute/version HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 49
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:36 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/version
|
||||
|
||||
{
|
||||
"local": true,
|
||||
"version": "2.1.0dev1"
|
||||
}
|
21
docs/api/examples/compute_post_projects.txt
Normal file
21
docs/api/examples/compute_post_projects.txt
Normal file
@ -0,0 +1,21 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects' -d '{"name": "test", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
||||
|
||||
POST /v2/compute/projects HTTP/1.1
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 80
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:20 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
14
docs/api/examples/compute_post_projectsprojectidclose.txt
Normal file
14
docs/api/examples/compute_post_projectsprojectidclose.txt
Normal file
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:24 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/close
|
||||
|
141
docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
Normal file
141
docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
Normal file
@ -0,0 +1,141 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes' -d '{"name": "Cloud 1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes HTTP/1.1
|
||||
{
|
||||
"name": "Cloud 1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 2951
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:06:59 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes
|
||||
|
||||
{
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "bridge0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en1",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en2",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "fw0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "lo0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "p2p0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "utun0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet10",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet8",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet9",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"name": "Cloud 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/builtin/d3c99fe4-9f9c-4667-add5-2e37a75dbbb1",
|
||||
"node_id": "d3c99fe4-9f9c-4667-add5-2e37a75dbbb1",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "en0",
|
||||
"name": "en0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en1",
|
||||
"name": "en1",
|
||||
"port_number": 1,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en2",
|
||||
"name": "en2",
|
||||
"port_number": 2,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "utun0",
|
||||
"name": "utun0",
|
||||
"port_number": 3,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/2cd925a3-2a7f-4d92-bd2d-f0fbf93f0bc8/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/2cd925a3-2a7f-4d92-bd2d-f0fbf93f0bc8/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:06:59 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/63fcdc24-7a76-4ad3-a47a-08f3c54fd574/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/63fcdc24-7a76-4ad3-a47a-08f3c54fd574/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:04 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/389b8efd-70d1-4305-a1e0-5ea3bb3e647c/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/389b8efd-70d1-4305-a1e0-5ea3bb3e647c/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 145
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:06 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/tmp/captures/test.pcap"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/4b535824-c72f-484b-a5c5-da2e67e908f2/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/4b535824-c72f-484b-a5c5-da2e67e908f2/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:06 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
37
docs/api/examples/compute_post_projectsprojectidiounodes.txt
Normal file
37
docs/api/examples/compute_post_projectsprojectidiounodes.txt
Normal file
@ -0,0 +1,37 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "adb7de66-2415-44b5-8a84-2dc5fdee6979", "path": "iou.bin", "startup_config_content": "hostname test"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes HTTP/1.1
|
||||
{
|
||||
"name": "PC TEST 1",
|
||||
"node_id": "adb7de66-2415-44b5-8a84-2dc5fdee6979",
|
||||
"path": "iou.bin",
|
||||
"startup_config_content": "hostname test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 640
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:08 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 2,
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/iou/adb7de66-2415-44b5-8a84-2dc5fdee6979",
|
||||
"node_id": "adb7de66-2415-44b5-8a84-2dc5fdee6979",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/eb58fbf6-61da-4b9f-9d3d-114fc01b2819/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/eb58fbf6-61da-4b9f-9d3d-114fc01b2819/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 64
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:11 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/77839213-c55a-484c-98a3-2bf0d2893352/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/77839213-c55a-484c-98a3-2bf0d2893352/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 145
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:13 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/tmp/captures/test.pcap"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/d11f7bfb-6250-4d9d-ae8d-a3d152c3de7c/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/d11f7bfb-6250-4d9d-ae8d-a3d152c3de7c/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:14 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/d1e486ba-72d8-4fd3-a5fe-b2f4bcdb353b/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/d1e486ba-72d8-4fd3-a5fe-b2f4bcdb353b/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:09 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,34 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/866ec4e8-835c-41bc-ae06-ef3aefc3133c/start' -d '{"iourc_content": "test"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/866ec4e8-835c-41bc-ae06-ef3aefc3133c/start HTTP/1.1
|
||||
{
|
||||
"iourc_content": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 640
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:09 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 2,
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/iou/866ec4e8-835c-41bc-ae06-ef3aefc3133c",
|
||||
"node_id": "866ec4e8-835c-41bc-ae06-ef3aefc3133c",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/a11a0e08-4013-4727-b16b-29e92fc6f7cf/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/a11a0e08-4013-4727-b16b-29e92fc6f7cf/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:09 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/stop
|
||||
|
30
docs/api/examples/compute_post_projectsprojectidnatnodes.txt
Normal file
30
docs/api/examples/compute_post_projectsprojectidnatnodes.txt
Normal file
@ -0,0 +1,30 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes' -d '{"name": "Nat 1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes HTTP/1.1
|
||||
{
|
||||
"name": "Nat 1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 335
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:15 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "0bfda9f4-d320-437b-ad78-524022eb0ea7",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "virbr0",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/87b491bd-60dd-44d1-a2d3-98859e4a9c8d/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/87b491bd-60dd-44d1-a2d3-98859e4a9c8d/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:16 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
17
docs/api/examples/compute_post_projectsprojectidportsudp.txt
Normal file
17
docs/api/examples/compute_post_projectsprojectidportsudp.txt
Normal file
@ -0,0 +1,17 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 25
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:18 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/ports/udp
|
||||
|
||||
{
|
||||
"udp_port": 10000
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp47ntn6ne/qemu-system-x86_64", "ram": 1024}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1
|
||||
{
|
||||
"hda_disk_image": "linux\u8f7d.img",
|
||||
"name": "PC TEST 1",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp47ntn6ne/qemu-system-x86_64",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 1514
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:26 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"bios_image": "",
|
||||
"bios_image_md5sum": null,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "linux\u8f7d.img",
|
||||
"hda_disk_image_md5sum": "c4ca4238a0b923820dcc509a6f75849b",
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "",
|
||||
"hdb_disk_image_md5sum": null,
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:08:57:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/8f66a9c3-60bd-4a10-8feb-73e3341f0857",
|
||||
"node_id": "8f66a9c3-60bd-4a10-8feb-73e3341f0857",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp47ntn6ne/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a264a0f-bcdc-4c4e-b28f-ab27486dacf0/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a264a0f-bcdc-4c4e-b28f-ab27486dacf0/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "eth0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 409
|
||||
Connection: close
|
||||
Content-Length: 81
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:31 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"message": "NIO of type nio_ethernet is not supported",
|
||||
"status": 409
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c081c6f2-a073-410d-a182-a99fee27f1a2/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c081c6f2-a073-410d-a182-a99fee27f1a2/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:28 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/1f21573b-5ec1-401d-84a7-803d19f11b8c/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/1f21573b-5ec1-401d-84a7-803d19f11b8c/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:29 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/resume
|
||||
|
@ -0,0 +1,59 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ee86570c-7cc3-4c9d-95a7-55fbb442fd43/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ee86570c-7cc3-4c9d-95a7-55fbb442fd43/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 1468
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:27 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"bios_image": "",
|
||||
"bios_image_md5sum": null,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "",
|
||||
"hda_disk_image_md5sum": null,
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "",
|
||||
"hdb_disk_image_md5sum": null,
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:fd:43:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ee86570c-7cc3-4c9d-95a7-55fbb442fd43",
|
||||
"node_id": "ee86570c-7cc3-4c9d-95a7-55fbb442fd43",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp47ntn6ne/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/96005c5e-f02b-433b-a826-92d8cb52ebe8/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/96005c5e-f02b-433b-a826-92d8cb52ebe8/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:28 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/stop
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3faa953d-5669-40a0-8ede-8e6671e506fe/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3faa953d-5669-40a0-8ede-8e6671e506fe/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:28 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,35 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes HTTP/1.1
|
||||
{
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"vmname": "VM1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 459
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:36 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"node_directory": null,
|
||||
"node_id": "9e2ac63a-073c-4a24-aeac-f61357a5f90f",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VM1"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/96f83848-0576-4ef0-ae34-59e94f151aa9/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/96f83848-0576-4ef0-ae34-59e94f151aa9/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:38 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2266dbe5-4a29-42e2-8b96-4fcd5f53ead0/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2266dbe5-4a29-42e2-8b96-4fcd5f53ead0/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:38 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/648ab272-9340-4b8c-ac48-1ab94d347414/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/648ab272-9340-4b8c-ac48-1ab94d347414/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:37 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/resume
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5fb0ae01-4a89-4441-ab26-387d99e59966/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5fb0ae01-4a89-4441-ab26-387d99e59966/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:37 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/start
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/691076a7-5d1c-47b2-b100-7e3eda812e42/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/691076a7-5d1c-47b2-b100-7e3eda812e42/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:37 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/stop
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4928f9c9-5741-47ad-8dc3-6478e5a2d2cc/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4928f9c9-5741-47ad-8dc3-6478e5a2d2cc/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:37 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,26 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes' -d '{"name": "PC TEST 1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes HTTP/1.1
|
||||
{
|
||||
"name": "PC TEST 1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 428
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:39 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/688b1a5e-3b12-40f4-aa70-bf640ca20f5f",
|
||||
"node_id": "688b1a5e-3b12-40f4-aa70-bf640ca20f5f",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/841d8150-2de9-4673-92bb-2d87dcca1f88/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/841d8150-2de9-4673-92bb-2d87dcca1f88/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:40 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/fd6608b1-f731-4031-ba37-4f1dfaf461dd/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/fd6608b1-f731-4031-ba37-4f1dfaf461dd/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:43 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/c8ead56f-2107-4183-837e-ee2be3d07942/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/c8ead56f-2107-4183-837e-ee2be3d07942/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 428
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:42 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5004,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/c8ead56f-2107-4183-837e-ee2be3d07942",
|
||||
"node_id": "c8ead56f-2107-4183-837e-ee2be3d07942",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/0c6a1651-5d3e-48c1-8f2f-9bd79aef0aae/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/0c6a1651-5d3e-48c1-8f2f-9bd79aef0aae/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:43 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/stop
|
||||
|
23
docs/api/examples/compute_post_qemuimg.txt
Normal file
23
docs/api/examples/compute_post_qemuimg.txt
Normal file
@ -0,0 +1,23 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/qemu/img' -d '{"cluster_size": 64, "format": "qcow2", "lazy_refcounts": "off", "path": "/tmp/hda.qcow2", "preallocation": "metadata", "qemu_img": "/tmp/qemu-img", "refcount_bits": 12, "size": 100}'
|
||||
|
||||
POST /v2/compute/qemu/img HTTP/1.1
|
||||
{
|
||||
"cluster_size": 64,
|
||||
"format": "qcow2",
|
||||
"lazy_refcounts": "off",
|
||||
"path": "/tmp/hda.qcow2",
|
||||
"preallocation": "metadata",
|
||||
"qemu_img": "/tmp/qemu-img",
|
||||
"refcount_bits": 12,
|
||||
"size": 100
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:35 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/qemu/img
|
||||
|
@ -0,0 +1,141 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/4631238a-cc6f-42f4-919e-564e00b9daf5' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/4631238a-cc6f-42f4-919e-564e00b9daf5 HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 2948
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:00 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
||||
{
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "bridge0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en1",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en2",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "fw0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "lo0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "p2p0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "utun0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet10",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet8",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet9",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/builtin/4631238a-cc6f-42f4-919e-564e00b9daf5",
|
||||
"node_id": "4631238a-cc6f-42f4-919e-564e00b9daf5",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "en0",
|
||||
"name": "en0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en1",
|
||||
"name": "en1",
|
||||
"port_number": 1,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en2",
|
||||
"name": "en2",
|
||||
"port_number": 2,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "utun0",
|
||||
"name": "utun0",
|
||||
"port_number": 3,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/bc7e5ef2-dce1-4a8e-8e00-2269b3b31f8c' -d '{"console": 5006, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/bc7e5ef2-dce1-4a8e-8e00-2269b3b31f8c HTTP/1.1
|
||||
{
|
||||
"console": 5006,
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"name": "test",
|
||||
"start_command": "yes"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 653
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:05 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
|
||||
|
||||
{
|
||||
"adapters": 2,
|
||||
"aux": 5005,
|
||||
"console": 5006,
|
||||
"console_http_path": "/",
|
||||
"console_http_port": 80,
|
||||
"console_resolution": "1280x1024",
|
||||
"console_type": "telnet",
|
||||
"container_id": "8bd8153ea8f5",
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"image": "nginx:latest",
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/docker/bc7e5ef2-dce1-4a8e-8e00-2269b3b31f8c",
|
||||
"node_id": "bc7e5ef2-dce1-4a8e-8e00-2269b3b31f8c",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"start_command": "yes",
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e01d02c6-735e-4523-bb83-5ea11ecc97f7' -d '{"console": 5005, "ethernet_adapters": 4, "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "use_default_iou_values": true}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e01d02c6-735e-4523-bb83-5ea11ecc97f7 HTTP/1.1
|
||||
{
|
||||
"console": 5005,
|
||||
"ethernet_adapters": 4,
|
||||
"l1_keepalives": true,
|
||||
"name": "test",
|
||||
"nvram": 2048,
|
||||
"ram": 512,
|
||||
"serial_adapters": 0,
|
||||
"use_default_iou_values": true
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 635
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:10 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5005,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 4,
|
||||
"l1_keepalives": true,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_json4/project-files/iou/e01d02c6-735e-4523-bb83-5ea11ecc97f7",
|
||||
"node_id": "e01d02c6-735e-4523-bb83-5ea11ecc97f7",
|
||||
"nvram": 2048,
|
||||
"path": "iou.bin",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 512,
|
||||
"serial_adapters": 0,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/41808a1f-4259-44e1-904c-bc785c285677' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/41808a1f-4259-44e1-904c-bc785c285677 HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 334
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:18 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"node_id": "41808a1f-4259-44e1-904c-bc785c285677",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "virbr0",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/4f507333-8f47-4e28-80c0-431412e17452' -d '{"console": 5006, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/4f507333-8f47-4e28-80c0-431412e17452 HTTP/1.1
|
||||
{
|
||||
"console": 5006,
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
"name": "test",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 1509
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:29 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"bios_image": "",
|
||||
"bios_image_md5sum": null,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5006,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "",
|
||||
"hda_disk_image_md5sum": null,
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
"hdb_disk_image_md5sum": "c4ca4238a0b923820dcc509a6f75849b",
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:74:52:00",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/4f507333-8f47-4e28-80c0-431412e17452",
|
||||
"node_id": "4f507333-8f47-4e28-80c0-431412e17452",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp47ntn6ne/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/39302861-c326-48fe-a44d-d3c9582d5354' -d '{"console": 5005, "name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/39302861-c326-48fe-a44d-d3c9582d5354 HTTP/1.1
|
||||
{
|
||||
"console": 5005,
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 463
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:39 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5005,
|
||||
"console_type": "telnet",
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "39302861-c326-48fe-a44d-d3c9582d5354",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VMTEST"
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/8a66c0b3-f8d7-44e8-aa03-12d5e14c7387' -d '{"console": 5006, "name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/8a66c0b3-f8d7-44e8-aa03-12d5e14c7387 HTTP/1.1
|
||||
{
|
||||
"console": 5006,
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 423
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:43 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5006,
|
||||
"console_type": "telnet",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpogl9mqkr/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/8a66c0b3-f8d7-44e8-aa03-12d5e14c7387",
|
||||
"node_id": "8a66c0b3-f8d7-44e8-aa03-12d5e14c7387",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "stopped"
|
||||
}
|
14
docs/api/examples/controller_delete_computescomputeid.txt
Normal file
14
docs/api/examples/controller_delete_computescomputeid.txt
Normal file
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/computes/my_compute_id'
|
||||
|
||||
DELETE /v2/computes/my_compute_id HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:46 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/computes/{compute_id}
|
||||
|
14
docs/api/examples/controller_delete_projectsprojectid.txt
Normal file
14
docs/api/examples/controller_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/e30c8eb4-c08f-4a5e-836e-c885a0a816ad'
|
||||
|
||||
DELETE /v2/projects/e30c8eb4-c08f-4a5e-836e-c885a0a816ad HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:08:03 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/9e3eaf56-ac31-4b2f-a84f-b3874b0fc0b9/drawings/f5852a28-616a-4e2c-a288-2184daecd0dc'
|
||||
|
||||
DELETE /v2/projects/9e3eaf56-ac31-4b2f-a84f-b3874b0fc0b9/drawings/f5852a28-616a-4e2c-a288-2184daecd0dc HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:49 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}/drawings/{drawing_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/0e7e02c1-1864-46e3-a0ec-de2d3860ed66/links/998e514e-d9a3-4de5-a940-13845f96fe55'
|
||||
|
||||
DELETE /v2/projects/0e7e02c1-1864-46e3-a0ec-de2d3860ed66/links/998e514e-d9a3-4de5-a940-13845f96fe55 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:54 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}/links/{link_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/f4a68c15-6212-45a0-9760-14d0f8aa30a3/nodes/d52ba5ac-1806-4264-a77d-dac53c5bcd3a'
|
||||
|
||||
DELETE /v2/projects/f4a68c15-6212-45a0-9760-14d0f8aa30a3/nodes/d52ba5ac-1806-4264-a77d-dac53c5bcd3a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:07:59 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/6f8d001b-2e78-4ce2-be41-2c09dc2c6d76/snapshots/ec35ee09-2bc2-4254-94a5-32d6ec6b16b9'
|
||||
|
||||
DELETE /v2/projects/6f8d001b-2e78-4ce2-be41-2c09dc2c6d76/snapshots/ec35ee09-2bc2-4254-94a5-32d6ec6b16b9 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 29 Jun 2017 15:08:09 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}/snapshots/{snapshot_id}
|
||||
|
96
docs/api/examples/controller_get_appliances.txt
Normal file
96
docs/api/examples/controller_get_appliances.txt
Normal file
@ -0,0 +1,96 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/appliances'
|
||||
|
||||
GET /v2/appliances HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 2486
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:43 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/appliances
|
||||
|
||||
[
|
||||
{
|
||||
"appliance_id": "39e257dc-8412-3174-b6b3-0ee3ed6a43e9",
|
||||
"builtin": true,
|
||||
"category": "guest",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "Cloud",
|
||||
"node_type": "cloud",
|
||||
"symbol": ":/symbols/cloud.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "df8f4ea9-33b7-3e96-86a2-c39bc9bb649c",
|
||||
"builtin": true,
|
||||
"category": "guest",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "NAT",
|
||||
"node_type": "nat",
|
||||
"symbol": ":/symbols/cloud.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc",
|
||||
"builtin": true,
|
||||
"category": "guest",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "VPCS",
|
||||
"node_type": "vpcs",
|
||||
"symbol": ":/symbols/vpcs_guest.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "1966b864-93e7-32d5-965f-001384eec461",
|
||||
"builtin": true,
|
||||
"category": "switch",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "Ethernet switch",
|
||||
"node_type": "ethernet_switch",
|
||||
"symbol": ":/symbols/ethernet_switch.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "b4503ea9-d6b6-3695-9fe4-1db3b39290b0",
|
||||
"builtin": true,
|
||||
"category": "switch",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "Ethernet hub",
|
||||
"node_type": "ethernet_hub",
|
||||
"symbol": ":/symbols/hub.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "dd0f6f3a-ba58-3249-81cb-a1dd88407a47",
|
||||
"builtin": true,
|
||||
"category": "switch",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "Frame Relay switch",
|
||||
"node_type": "frame_relay_switch",
|
||||
"symbol": ":/symbols/frame_relay_switch.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "aaa764e2-b383-300f-8a0e-3493bbfdb7d2",
|
||||
"builtin": true,
|
||||
"category": "switch",
|
||||
"compute_id": null,
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "ATM switch",
|
||||
"node_type": "atm_switch",
|
||||
"symbol": ":/symbols/atm_switch.svg"
|
||||
},
|
||||
{
|
||||
"appliance_id": "ae14fd22-8a2a-4bd0-a88d-86bd35744533",
|
||||
"builtin": false,
|
||||
"category": "router",
|
||||
"compute_id": "local",
|
||||
"default_name_format": "{name}-{0}",
|
||||
"name": "test",
|
||||
"node_type": "qemu",
|
||||
"symbol": "guest.svg"
|
||||
}
|
||||
]
|
8401
docs/api/examples/controller_get_appliancestemplates.txt
Normal file
8401
docs/api/examples/controller_get_appliancestemplates.txt
Normal file
File diff suppressed because it is too large
Load Diff
31
docs/api/examples/controller_get_computes.txt
Normal file
31
docs/api/examples/controller_get_computes.txt
Normal file
@ -0,0 +1,31 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes'
|
||||
|
||||
GET /v2/computes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 387
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:45 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/computes
|
||||
|
||||
[
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "My super server",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
}
|
||||
]
|
29
docs/api/examples/controller_get_computescomputeid.txt
Normal file
29
docs/api/examples/controller_get_computescomputeid.txt
Normal file
@ -0,0 +1,29 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes/my_compute_id'
|
||||
|
||||
GET /v2/computes/my_compute_id HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 334
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:45 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/computes/{compute_id}
|
||||
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "http://julien@localhost:84",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes/my_compute/virtualbox/vms'
|
||||
|
||||
GET /v2/computes/my_compute/virtualbox/vms HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 2
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:47 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/computes/{compute_id}/{emulator}/{action:.+}
|
||||
|
||||
[]
|
@ -0,0 +1,22 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes/my_compute/qemu/images'
|
||||
|
||||
GET /v2/computes/my_compute/qemu/images HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 95
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:47 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/computes/{compute_id}/{emulator}/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "linux.qcow2"
|
||||
},
|
||||
{
|
||||
"filename": "asav.qcow2"
|
||||
}
|
||||
]
|
23
docs/api/examples/controller_get_gns3vm.txt
Normal file
23
docs/api/examples/controller_get_gns3vm.txt
Normal file
@ -0,0 +1,23 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm'
|
||||
|
||||
GET /v2/gns3vm HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 148
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:50 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/gns3vm
|
||||
|
||||
{
|
||||
"enable": false,
|
||||
"engine": "vmware",
|
||||
"headless": false,
|
||||
"ram": 2048,
|
||||
"vcpus": 1,
|
||||
"vmname": null,
|
||||
"when_exit": "stop"
|
||||
}
|
40
docs/api/examples/controller_get_gns3vmengines.txt
Normal file
40
docs/api/examples/controller_get_gns3vmengines.txt
Normal file
@ -0,0 +1,40 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines'
|
||||
|
||||
GET /v2/gns3vm/engines HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 1106
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:50 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/gns3vm/engines
|
||||
|
||||
[
|
||||
{
|
||||
"description": "VMware is the recommended choice for best performances.<br>The GNS3 VM can be <a href=\"https://github.com/GNS3/gns3-gui/releases/download/v2.1.0dev1/GNS3.VM.VMware.Workstation.2.1.0dev1.zip\">downloaded here</a>.",
|
||||
"engine_id": "vmware",
|
||||
"name": "VMware Fusion",
|
||||
"support_headless": true,
|
||||
"support_ram": true,
|
||||
"support_when_exit": true
|
||||
},
|
||||
{
|
||||
"description": "VirtualBox doesn't support nested virtualization, this means running Qemu based VM could be very slow.<br>The GNS3 VM can be <a href=\"https://github.com/GNS3/gns3-gui/releases/download/v2.1.0dev1/GNS3.VM.VirtualBox.2.1.0dev1.zip\">downloaded here</a>",
|
||||
"engine_id": "virtualbox",
|
||||
"name": "VirtualBox",
|
||||
"support_headless": true,
|
||||
"support_ram": true,
|
||||
"support_when_exit": true
|
||||
},
|
||||
{
|
||||
"description": "Use a remote GNS3 server as the GNS3 VM.",
|
||||
"engine_id": "remote",
|
||||
"name": "Remote",
|
||||
"support_headless": false,
|
||||
"support_ram": false,
|
||||
"support_when_exit": false
|
||||
}
|
||||
]
|
19
docs/api/examples/controller_get_gns3vmenginesenginevms.txt
Normal file
19
docs/api/examples/controller_get_gns3vmenginesenginevms.txt
Normal file
@ -0,0 +1,19 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines/vmware/vms'
|
||||
|
||||
GET /v2/gns3vm/engines/vmware/vms HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 40
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:49 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/gns3vm/engines/{engine}/vms
|
||||
|
||||
[
|
||||
{
|
||||
"vmname": "test"
|
||||
}
|
||||
]
|
28
docs/api/examples/controller_get_projects.txt
Normal file
28
docs/api/examples/controller_get_projects.txt
Normal file
@ -0,0 +1,28 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects'
|
||||
|
||||
GET /v2/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 428
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:08:03 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects
|
||||
|
||||
[
|
||||
{
|
||||
"auto_close": true,
|
||||
"auto_open": false,
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-63/test_list_projects1",
|
||||
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
||||
]
|
26
docs/api/examples/controller_get_projectsprojectid.txt
Normal file
26
docs/api/examples/controller_get_projectsprojectid.txt
Normal file
@ -0,0 +1,26 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/02002a90-7b38-4e25-939f-5718e6ff2f4b'
|
||||
|
||||
GET /v2/projects/02002a90-7b38-4e25-939f-5718e6ff2f4b HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 379
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:08:03 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}
|
||||
|
||||
{
|
||||
"auto_close": true,
|
||||
"auto_open": false,
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp_f3j_m7j/projects/02002a90-7b38-4e25-939f-5718e6ff2f4b",
|
||||
"project_id": "02002a90-7b38-4e25-939f-5718e6ff2f4b",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/b23bbc6f-56fa-4954-8adc-45a074875bb8/drawings'
|
||||
|
||||
GET /v2/projects/b23bbc6f-56fa-4954-8adc-45a074875bb8/drawings HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 363
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:49 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}/drawings
|
||||
|
||||
[
|
||||
{
|
||||
"drawing_id": "1804b301-3f1d-47d6-b8cf-201c29ffcdc5",
|
||||
"project_id": "b23bbc6f-56fa-4954-8adc-45a074875bb8",
|
||||
"rotation": 0,
|
||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||
"x": 10,
|
||||
"y": 20,
|
||||
"z": 0
|
||||
}
|
||||
]
|
50
docs/api/examples/controller_get_projectsprojectidlinks.txt
Normal file
50
docs/api/examples/controller_get_projectsprojectidlinks.txt
Normal file
@ -0,0 +1,50 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/a683bc42-6b18-4c1e-9497-23f11f5e60bc/links'
|
||||
|
||||
GET /v2/projects/a683bc42-6b18-4c1e-9497-23f11f5e60bc/links HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 1111
|
||||
Content-Type: application/json
|
||||
Date: Thu, 29 Jun 2017 15:07:52 GMT
|
||||
Server: Python/3.6 GNS3/2.1.0dev1
|
||||
X-Route: /v2/projects/{project_id}/links
|
||||
|
||||
[
|
||||
{
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "a810aca4-4e76-47a2-9a33-78dd3c5d0f21",
|
||||
"link_type": "ethernet",
|
||||
"nodes": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10; font-style: Verdana",
|
||||
"text": "0/3",
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "13eee57f-4240-43eb-89f0-3cbe635f98d7",
|
||||
"port_number": 3
|
||||
},
|
||||
{
|
||||
"adapter_number": 2,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10; font-style: Verdana",
|
||||
"text": "2/4",
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "a2102f85-9ca9-451e-aa67-f4c0f3dfc0a6",
|
||||
"port_number": 4
|
||||
}
|
||||
],
|
||||
"project_id": "a683bc42-6b18-4c1e-9497-23f11f5e60bc"
|
||||
}
|
||||
]
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user