mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-24 17:55:15 +00:00
Compare commits
680 Commits
Author | SHA1 | Date | |
---|---|---|---|
db6485e702 | |||
106915f419 | |||
69fcf801c3 | |||
dc363bbd38 | |||
43236746f9 | |||
66a789672d | |||
a4f8675c93 | |||
3ecdd1d30c | |||
97cc60fad4 | |||
8adc010ba0 | |||
7d35d1a34f | |||
fbd3a54877 | |||
da71f29208 | |||
1eb423c204 | |||
2a4b68d3b7 | |||
19be2d85b7 | |||
8055547936 | |||
40ae563da1 | |||
dd849f7945 | |||
b53b34d485 | |||
a8ffaa9cb5 | |||
f737989e44 | |||
b9b0feed62 | |||
421e127603 | |||
e63da227d0 | |||
780b00f095 | |||
cb0a7c6a3f | |||
b43a0f7dac | |||
ec3660c979 | |||
fbdcf67d29 | |||
a9c7c3ca3b | |||
241c9b0c11 | |||
b6fa14454e | |||
a437760f5d | |||
98480881a3 | |||
d60b606d5e | |||
5a695d2651 | |||
54c45f0b98 | |||
46e1fbda60 | |||
5a7f5d2950 | |||
4b4053dc2b | |||
2b9c190bcf | |||
7baf584367 | |||
c7d9af121f | |||
04aec4619f | |||
8299ce800d | |||
4aa7a0a9df | |||
48a73f9ab5 | |||
780086cd5b | |||
fb8a942620 | |||
6fa8c52482 | |||
f3d255756b | |||
99bdf37ec3 | |||
420168015c | |||
bfb82a9618 | |||
1e0b724e47 | |||
4d6d0e96c6 | |||
36175f7c26 | |||
a8c32e6b8e | |||
a01b55f07b | |||
a7184f32bd | |||
a5ff0b8579 | |||
6ac595a38c | |||
f6b34e2434 | |||
74dd212def | |||
462238a335 | |||
2b1fab6742 | |||
68725778e8 | |||
8f6d24ae5e | |||
cfd74a8164 | |||
79d376652c | |||
c38dd004b8 | |||
fb2dac6ef1 | |||
e01931269f | |||
c2420318ba | |||
fd3ac65eb5 | |||
20772a310b | |||
2c73d40551 | |||
be5d543f20 | |||
3a8ca1071e | |||
7df645f742 | |||
3ea5df7462 | |||
5555662b2c | |||
4ea3690951 | |||
15babb137d | |||
eccee6b629 | |||
c91999c532 | |||
f3596767c1 | |||
ef95ba1ed8 | |||
79b4926cad | |||
dc798dafd0 | |||
4c900ce639 | |||
87e2326363 | |||
41f12457e7 | |||
29563ed7bc | |||
286112ced4 | |||
6837cc8e23 | |||
5631e1bd86 | |||
4bd9556767 | |||
2bbdbeaa82 | |||
056ae41d56 | |||
4cd164fc24 | |||
896d279ded | |||
d2b0321419 | |||
14416afbba | |||
64139387c4 | |||
77eae35778 | |||
9fbe23e09b | |||
5fd04e1f9e | |||
f0af7d3c7a | |||
cf10f02a8d | |||
ac8bd3fec4 | |||
b7bd73e8c9 | |||
c90df05e8c | |||
ee50790ab5 | |||
37f972dea1 | |||
da5e3d0e54 | |||
5d12a91268 | |||
ba148df159 | |||
5b1ec3bec2 | |||
84a2f8b4a3 | |||
803064d5cf | |||
2f0e2260ab | |||
f06c00fdb8 | |||
b8909c54cf | |||
de2dad20d5 | |||
a17ae316c7 | |||
83b72d762c | |||
1412462229 | |||
cfe834afc4 | |||
84c0a17572 | |||
9bbb32400d | |||
0910712657 | |||
de526482e3 | |||
62377315dd | |||
436543d8b8 | |||
67fc563d81 | |||
f0edf799b7 | |||
f1fe7246e7 | |||
9c6ee97ff2 | |||
0bbda4a5d7 | |||
bc5b5969eb | |||
0573c3f7d5 | |||
a7be4681d5 | |||
e40569a46f | |||
d772b6fbd7 | |||
4b891070d2 | |||
5ae456d6e2 | |||
75d5f6507d | |||
6e7f6a94ec | |||
1d70a18b11 | |||
d7c60db2b9 | |||
3ce3f925ae | |||
0afd7b78b7 | |||
2d86a7fdcf | |||
43afce740d | |||
be0fee99e7 | |||
947dcf1406 | |||
6a259c7e06 | |||
4bbd8938ab | |||
f216422d0f | |||
4624c7433c | |||
07b982d4db | |||
483370b756 | |||
662c8788c2 | |||
45471fc865 | |||
238421c415 | |||
0a08ea05d6 | |||
ff61f79a88 | |||
9fc23f07f1 | |||
03e31a2cb9 | |||
7065988087 | |||
5fdd33fe3b | |||
3bff094238 | |||
e0c5fdcf1c | |||
919355abd8 | |||
96f3cb0445 | |||
36d2e80d0a | |||
edae834e0e | |||
2c8b8540cd | |||
d121c201e4 | |||
bbc1505274 | |||
ffe6448534 | |||
19e6d956df | |||
72fe5d3489 | |||
b7bf97039c | |||
da1cd9a3e7 | |||
0eafb6f06c | |||
042a69eecf | |||
1885fe62a6 | |||
e481ffa94c | |||
937bbf0131 | |||
d58a6ccda9 | |||
84fb108abb | |||
f93e443548 | |||
8352ff02a1 | |||
5289c714f4 | |||
7fd520c08b | |||
4455499e00 | |||
763f258465 | |||
134fed8fc5 | |||
c01bb2436e | |||
9511c34b4f | |||
9255dc07b7 | |||
fc8b4c3216 | |||
21b99ad9f9 | |||
6cad685a08 | |||
bfabf3ddc8 | |||
9231b8e991 | |||
147bb8758a | |||
ab38edf7ca | |||
897455d5e9 | |||
46910a183e | |||
5bb1abb2a9 | |||
cde28c849e | |||
324962def5 | |||
fe9e824f1c | |||
a53a972135 | |||
22fcfffce7 | |||
faae248487 | |||
8f7be87b1e | |||
39db35c3ff | |||
0226bb663f | |||
fa76b89731 | |||
f0fad5289c | |||
8eab94f01e | |||
d447a04c6a | |||
f358cb45a2 | |||
3e3e7b93ae | |||
1c2a56ee8e | |||
7777407c4b | |||
2842904769 | |||
5de27a95f9 | |||
f82527e253 | |||
938696032c | |||
4d8cf8460e | |||
796ebf7210 | |||
a4023c0298 | |||
9694850465 | |||
9e81994adc | |||
ac085126fc | |||
12735ff36e | |||
017202d151 | |||
0613efa297 | |||
e710eff22e | |||
3ca4edef93 | |||
431bd789cb | |||
937ffc7b73 | |||
16c2305b33 | |||
225e4f7528 | |||
6b8e93f847 | |||
db95cb5c46 | |||
45af721164 | |||
0c3a2c660a | |||
d6f63d3b7d | |||
7d90a73ed2 | |||
fc6b220c7c | |||
7e40eb02e6 | |||
11af6f4f82 | |||
0be973f2c5 | |||
c96bd5f2a9 | |||
68eca6c111 | |||
814fd1fcfb | |||
0f7037bb32 | |||
e50eae19e6 | |||
e50acf811c | |||
f357879186 | |||
fb3b6b62f5 | |||
786f9c87c9 | |||
9bdc0b78eb | |||
fec3694710 | |||
19b035d7e4 | |||
ce557ecd23 | |||
eff6a9154d | |||
e6831c25e2 | |||
d58bcddbcc | |||
94a262cd46 | |||
9b499dc51e | |||
88ffd43c97 | |||
3300e9ec48 | |||
487e99bea5 | |||
0f85fbd5f2 | |||
b5ab53bbe9 | |||
14f6bd60fb | |||
e557ccd078 | |||
bc8a319142 | |||
ff4fc5eb8b | |||
f68c1f0bde | |||
08c35f5558 | |||
7c4c03cf17 | |||
b1b2bbd581 | |||
da7074ea74 | |||
73d5066392 | |||
44307b43b9 | |||
dd63ca6ef1 | |||
2977b1059e | |||
3b70b4f217 | |||
c12413e0ce | |||
bda1812811 | |||
c9bdd76922 | |||
96eceed8ba | |||
11197e8dee | |||
b5cb625169 | |||
b745397a3a | |||
45591aa74b | |||
c0abe0edfd | |||
b841a0f57b | |||
8be1e77a2e | |||
3dccfbb852 | |||
2c62b1eeb8 | |||
7c7662f1b6 | |||
3d52e18fa5 | |||
ee533943c8 | |||
fd0e8f89db | |||
b98d4cb042 | |||
febf0f7839 | |||
9cd3231de3 | |||
234f199558 | |||
13deecea4e | |||
27269fb13a | |||
91ec61b88d | |||
1f2ce48fc8 | |||
9bf4c22a50 | |||
50aa198ba7 | |||
d159cbcc6d | |||
d99c050705 | |||
7e91a5cb11 | |||
05df0a9bb6 | |||
26d49f19c1 | |||
e1a7efad60 | |||
08956e438c | |||
7a4c01e737 | |||
ca4d09ea40 | |||
e175650fb0 | |||
5f88db93ff | |||
e0a2553be4 | |||
b905760635 | |||
f9bc745ddb | |||
ead8a6caa2 | |||
7fee90805b | |||
9d2f4168ff | |||
5bf6011429 | |||
fea1e3ba61 | |||
71d4c0a13a | |||
818174824b | |||
fe7bcae6a1 | |||
758a427a76 | |||
543b423e03 | |||
66959ee4e9 | |||
68b7f81601 | |||
d8317e8128 | |||
22f9effede | |||
224708e451 | |||
c4d7a0b8fc | |||
8ec11619cd | |||
e77445e860 | |||
bf154049d2 | |||
5b4e668eb5 | |||
c5fa699b9e | |||
5fab48ba75 | |||
2739483751 | |||
b66f7daa28 | |||
deb97f8ec0 | |||
e830356e62 | |||
c0b09ae76a | |||
1f0fe6d304 | |||
5898b86dfc | |||
fa769cd41d | |||
6b5822905c | |||
379c216109 | |||
d79fb231d3 | |||
d28fad223f | |||
ce3276d374 | |||
abfb51baa8 | |||
04022677bd | |||
4eb03b5a99 | |||
c8f37381f4 | |||
5a410155f7 | |||
4c3bfde97e | |||
852d8e411e | |||
c847755f1b | |||
00da15e4af | |||
b456a363ca | |||
bc613e9fd8 | |||
7422d06c1d | |||
5daff17911 | |||
8296621320 | |||
03e9eac55b | |||
4f78efa0c8 | |||
51dbe59e99 | |||
027d3687a7 | |||
f55398fe99 | |||
679774430a | |||
32252e5193 | |||
42ff398f05 | |||
116135b9dc | |||
85ebac7eb3 | |||
6949976d12 | |||
d1de665939 | |||
f151181409 | |||
07395c9cf2 | |||
3132d51694 | |||
4783691c87 | |||
49eb7d8ce7 | |||
627ebdb322 | |||
186adff2ef | |||
6dff8af235 | |||
ba05ca029e | |||
a289c9c685 | |||
da58a65075 | |||
32907ccac3 | |||
c66ef9d218 | |||
411ca56b94 | |||
45d7e09cbd | |||
f45901e861 | |||
2bc30e207e | |||
56051b1142 | |||
2a1c5cfd9c | |||
ae076c7ca9 | |||
6982e118c0 | |||
38a41a1cfd | |||
8fbfae6a98 | |||
aa5988788d | |||
c4d619ce3c | |||
6d36429870 | |||
524f8991bc | |||
0569480953 | |||
742243e9df | |||
5ca9becdf9 | |||
bb0db7846f | |||
e82862c69f | |||
d98a7aac19 | |||
43a3584a5c | |||
049c348709 | |||
3aea16c527 | |||
d815d25bdf | |||
b62a03d7e2 | |||
27624acd06 | |||
3255be0ae2 | |||
52f852bc6d | |||
7beadd03a6 | |||
31f4b52631 | |||
343f2b574d | |||
016c3e515b | |||
70431a5fa6 | |||
4f03c3011e | |||
e183e7da27 | |||
67c04a7855 | |||
2bde02d459 | |||
6cd136b423 | |||
b079cf9546 | |||
c3c5eb533f | |||
69334665d2 | |||
182a979e71 | |||
1c6de3ff39 | |||
2a5cf18d20 | |||
e46171b826 | |||
3c9e8507d1 | |||
a35f41e4dc | |||
313226786f | |||
dee9d423a3 | |||
3deb555981 | |||
70345abc2a | |||
fe98163bd0 | |||
1b530bde3f | |||
add546158f | |||
08e482004f | |||
972cbd0594 | |||
d8bdd16e13 | |||
dcebaf61b8 | |||
d30abeca21 | |||
df7d26e418 | |||
c829a250a9 | |||
8909c4211c | |||
582e3c72ff | |||
775ee4259e | |||
d108fc6e94 | |||
06b54d82dc | |||
61ac8763f2 | |||
e80dd40121 | |||
e335015520 | |||
65bfb4b907 | |||
8c760f3ccc | |||
eaf621cc57 | |||
e05b0a396e | |||
917c1c7f84 | |||
fecd81655e | |||
a702155230 | |||
cb7dbfb256 | |||
4afa5994e8 | |||
f47eb326c7 | |||
cd07a99118 | |||
469187c584 | |||
ad7ecb8850 | |||
9b99a03cbf | |||
3aed651062 | |||
435dc82873 | |||
87f15eafe0 | |||
ae687346f1 | |||
f9d88d902a | |||
f2eb2a4bdc | |||
d3436756b2 | |||
6f7b06e66f | |||
009ffcb4ef | |||
f0e0988d6a | |||
3f61fbeb0e | |||
d42366a75a | |||
e65648398b | |||
6c1d7bad81 | |||
4c291f5051 | |||
29127895b9 | |||
7a80dd6cb3 | |||
94a709cb42 | |||
c1aad550fa | |||
59f22cd346 | |||
39a3f2fae2 | |||
ea7754f1c8 | |||
914fe7e750 | |||
8e3e3c08f8 | |||
e497e98ca1 | |||
df654b40ff | |||
fbc04e083b | |||
84b12fd953 | |||
314a7cd8fb | |||
6162d7e431 | |||
d469a2060d | |||
0063fb4615 | |||
dbda3fc8fc | |||
2c72452c91 | |||
a797038aeb | |||
df73f80bf5 | |||
b126c396c9 | |||
da6cb13338 | |||
3fd0a6d638 | |||
851ba074e7 | |||
0aa81b5fa5 | |||
cdd54b951a | |||
f6a3899603 | |||
3e6aec016b | |||
7d055968e5 | |||
6d5085910c | |||
57fd72c35c | |||
672a617102 | |||
00f80f54e8 | |||
b00a09efaa | |||
54747ee618 | |||
fa0af7f4a2 | |||
694e1a2e68 | |||
d86cefaaeb | |||
d5895c3a47 | |||
82f82f8cf9 | |||
7ebbdcd47c | |||
f052299eb1 | |||
c4ebdc0e37 | |||
b07dcf552c | |||
ce0d715895 | |||
342bcdb5b6 | |||
b44c2ea713 | |||
da81b49fdc | |||
a496aaab9e | |||
cb70cfecd7 | |||
5c8b3f3f4c | |||
1eb77a0b3f | |||
a9b95eb242 | |||
d97325b113 | |||
26c7aedba6 | |||
f76f417e52 | |||
ac24922300 | |||
c88c67e8ef | |||
7a523990a6 | |||
5b604da33a | |||
51738e19c3 | |||
f1bc2f22c3 | |||
6cea6c9162 | |||
f81d35cc29 | |||
885d93be02 | |||
be1efe8327 | |||
d21fa9e961 | |||
2857d9a070 | |||
d43e78a1d7 | |||
b46a0ff4ae | |||
5280644327 | |||
885a870ae8 | |||
e457df1777 | |||
801b94a964 | |||
ef7b4ef020 | |||
483431438a | |||
5a76f81271 | |||
9ccb55206d | |||
a0344576ba | |||
95d2bd0065 | |||
c2da568543 | |||
390401000f | |||
4342b4346e | |||
cd836f146e | |||
ed0bae8689 | |||
c3c7356ce3 | |||
9dca7dfe4a | |||
a3b243c501 | |||
98b32cd9e2 | |||
f98f6bf3ed | |||
92d1594afd | |||
76b2ca2bc0 | |||
264254e657 | |||
9a1eeb57e9 | |||
893b05d26b | |||
bce439446e | |||
7390d833ba | |||
8777e027b0 | |||
1ce576c020 | |||
48e71617d6 | |||
30f05c6190 | |||
4a99a172a3 | |||
1a22fb9250 | |||
549a6280c0 | |||
04a1b2df3b | |||
78a9785819 | |||
ee0f1eb5fb | |||
f6593663b5 | |||
c8c61f2ae8 | |||
f5e5cf5059 | |||
6463007ef1 | |||
d8005f6d4f | |||
ce5461aee8 | |||
79427b35fa | |||
9349bdc916 | |||
6b9e46950c | |||
d7ed37ce02 | |||
97aea5f82a | |||
6c11ad5fa6 | |||
b01d974f91 | |||
58d4a529d4 | |||
3185baff0d | |||
2841b5769e | |||
2055cdea5e | |||
ad7ca86f32 | |||
183d02ded5 | |||
6b61811f9d | |||
9e8fcab65c | |||
2fcada49d4 | |||
40f496c7e9 | |||
bc14d5d78e | |||
de61ed316c | |||
76a0120d3e | |||
b55969d381 | |||
d81fc25b27 | |||
dd2fdcc574 | |||
aa6c44a470 | |||
757ee34dac | |||
c0e452133d | |||
7a095478fe | |||
8fed1d9b9f | |||
ed291da566 | |||
9062490be3 | |||
9771b33b68 | |||
8cb5a6ec75 | |||
17c5d3048c | |||
65099b9364 | |||
6a19e4d822 | |||
8c1560332e | |||
e3580d52c3 | |||
abdda4d3b3 | |||
6fad82c61d | |||
69bf8bbb4e | |||
a0ef68c1a3 | |||
7d0b780dcc | |||
be4aa41dda | |||
4326d412f9 | |||
65de1b7b5e | |||
58f1abff35 | |||
3296b97f59 | |||
6fa2491255 | |||
8114c1d4be | |||
b2ce7ee8d7 | |||
664cec97ba | |||
e4b12f49d1 | |||
0921df520c | |||
0532b4de8a | |||
4d77b2918e | |||
aad69e9650 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,6 @@ dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
@ -52,3 +51,4 @@ docs/_build
|
||||
#VPCS
|
||||
vpcs.hist
|
||||
startup.vpcs
|
||||
.gns3_shell_history
|
||||
|
@ -1,6 +1,6 @@
|
||||
language: python
|
||||
python:
|
||||
- '3.5'
|
||||
- '3.5'
|
||||
sudo: false
|
||||
cache: pip
|
||||
install:
|
||||
|
138
CHANGELOG
138
CHANGELOG
@ -1,5 +1,143 @@
|
||||
# Change Log
|
||||
|
||||
## 2.0.0 alpha 2 20/10/2016
|
||||
* Return md5sum and filesize in the list of images
|
||||
* Disable binding to an IPV6
|
||||
* Support symbol None (from old versions)
|
||||
* Support named remote servers for VPCS
|
||||
* Improve vmrun error messages
|
||||
* If vmware raise an error about invalid host type we retry with player
|
||||
* Do not trust client for the type of VMware host
|
||||
* Improve error when default vm directory is not found
|
||||
* Add a clear warning about /upload deprecated
|
||||
* /duplicate support non opened projects
|
||||
* Fix Snapshot restore does not work with IOS routers
|
||||
* Use last zipstream version
|
||||
* Strip space from all nodes names
|
||||
* When checking for a free port check if the host and 0.0.0.0 are available
|
||||
* If listen on all interface do not return localhost as console
|
||||
* Fix HTTP console not working for docker containers
|
||||
* Fix IPV6 server support
|
||||
* Fix connection issue with IOU when a device as serial link
|
||||
* Catch an error when docker is not running
|
||||
* If docker container state failed to return we consider the container stopped
|
||||
* Fix Error when converting some dynamips topologies from 1.3 => 2.0
|
||||
* After conversion from 1.X check the topology before save to disk
|
||||
* Keep forever .gns3 backup before version upgrade
|
||||
* Update crash report key
|
||||
* Fix save of topology size
|
||||
* Missing busybox for docker
|
||||
* GNS3 server can't be keep as zipped egg
|
||||
* Check if GNS3 has access to all docker resssources
|
||||
* Return the platform of a compute
|
||||
* Handle errors when startup config path is wrong
|
||||
* smm=off is only for 64bits
|
||||
* Fix uploads of large images
|
||||
* Stop raising error if VMware has not enough ram. Not working on some system
|
||||
* Increase creation timeout for docker container
|
||||
* Fix a rare crash in vbox
|
||||
* Fix errors where free port as marked as used after an error
|
||||
* Fix a bug when selecting a topology and deleting multiple linked device
|
||||
* Set Qemu uuid for csr1000v
|
||||
* Prevent connect a node to himself
|
||||
* Fix BadZipFile: File is not a zip file
|
||||
* The gns3_controller.conf is located in the same directory of gns3_server.conf
|
||||
* Make sure the compute has an id
|
||||
* Fix crash if you manually delete the project directory and use the delete button in interface
|
||||
* Catch timeout error when closing project
|
||||
* Fix a crash when importing some old topologies.
|
||||
* Fix a crash if font information is missing
|
||||
|
||||
## 2.0.0 alpha 1 29/09/2016
|
||||
* Save as you go
|
||||
* Smart packet capture
|
||||
* Capture on any link between any node
|
||||
* Select where to run a VPCS node
|
||||
* Delete a project from the GUI
|
||||
* Project options
|
||||
* The cloud is a real node
|
||||
* Cloud templates
|
||||
* New cloud interface
|
||||
* VPCS / Ethernet Switch / Ethernet Hub templates
|
||||
* Search OS images in multiple locations
|
||||
* Periodic extraction of startup configs for Dynamips and IOU
|
||||
* Custom cloud, Ethernet hub and Ethernet switch templates
|
||||
* Snap to grid for all objects
|
||||
* Synchronize the node templates when using multiple GUI
|
||||
* Link label style
|
||||
* New place holders in command line for opening consoles
|
||||
* %i will be replaced by the project UUID
|
||||
* %c will be replaced by the connection string
|
||||
* Export a portable project from multiple remote servers
|
||||
* New save as
|
||||
* Snapshots with remote servers
|
||||
* Better start / stop / suspend all nodes
|
||||
* Edit config
|
||||
* NAT node
|
||||
* Support for colorblind users
|
||||
* Support for non local server
|
||||
* Support for profiles
|
||||
* Suspend the GNS3VM when closing GNS3
|
||||
* Edit the scene size
|
||||
* New API
|
||||
|
||||
|
||||
## 1.5.2 18/08/2016
|
||||
|
||||
* Move utils.vmnet to gns3 namespace
|
||||
* Fix Exporting portable projects with QEMU includes base images even when selecting no.
|
||||
* Catch error when md5sum file is corrupted
|
||||
* requirements.txt : added support for newer aiohttp version
|
||||
* Improve compaction of .gns3project
|
||||
* Fix crash when winpcap is not installed
|
||||
|
||||
## 1.5.1 07/07/2016
|
||||
|
||||
* Increase the number of interface for docker
|
||||
* Add the method in the bad request answer
|
||||
* Fix a rare crash in IOU
|
||||
* Fix a crash when docker is used but not installed
|
||||
* Backport Docker node hot linking
|
||||
* Allows hot-linking for Docker containers. Ref #267.
|
||||
|
||||
## 1.5.0 27/06/2016
|
||||
|
||||
* Fix import of project with no disk
|
||||
* Allow for (a lot) more docker container ports. Fixes #593.
|
||||
* Raise an error if you try to use Docker on non Linux host
|
||||
* Fix a crash in Docker if daemon stop to respond
|
||||
* Fix a crash if Dynamips router has no initial configuration
|
||||
* Kill ghosts process at startup (Dynamips, VPCS, Ubridge)
|
||||
|
||||
## 1.5.0rc2 15/06/2016
|
||||
|
||||
* Fix black screen with Qt app in Docker container
|
||||
* Detect when command in the container exit
|
||||
* Docker when the aux console exit and restart it
|
||||
* Pass by default the environment variable container=docker
|
||||
* Fix busybox binary location
|
||||
* Avoid loosing console port for Docker
|
||||
* Workaround a crash in x11vnc
|
||||
* Delete volume when dropping the container
|
||||
* Catch connection reset in ioucon
|
||||
* Delete vlan.dat for L2IOL during config import. Fixes #1285.
|
||||
* Copy original ressources from VOLUMES
|
||||
|
||||
## 1.5.0rc1 01/06/2016
|
||||
|
||||
* Save an restore docker permission
|
||||
* Export the list of volumes to a env variable accessible in the container
|
||||
* Fix a crash when docker start command is None
|
||||
* Ubridge 0.9.4 is require
|
||||
* Generate a MAC address using the project + node UUID. Ref #522.
|
||||
* Catch extra args in windows signal handler
|
||||
* Allow to block network traffic originating from the host OS for vmnet interfaces (Windows only).
|
||||
* Fix an import error when you have no GNS3 VM
|
||||
* Warn if you can not export a file due to permission issue
|
||||
* Do not delete adapters when stopping a VMware VM. Ref #1066.
|
||||
* Allocate a new vmnet interface if vmnet 0 1 or 8 is set to a custom adapter. Set adapter type to all adapters regardless if already configured or added by GNS3.
|
||||
* Set default VMware VM adapter type to e1000.
|
||||
|
||||
## 1.5.0b1 23/05/2016
|
||||
|
||||
* Allow an IOS router to stop even the Dynamips hypervisor command fail to be sent. Ref #488.
|
||||
|
@ -18,6 +18,10 @@ it on https://github.com/GNS3/gns3-gui we will take care of the triage.
|
||||
|
||||
For bugs specific to the GNS3 VM, please report on https://github.com/GNS3/gns3-vm
|
||||
|
||||
## Security issues
|
||||
|
||||
For security issues please keep it private and send an email to developers@gns3.net
|
||||
|
||||
## Asking for new features
|
||||
|
||||
The best is to start a discussion on the community website in order to get feedback
|
||||
|
61
conf/gns3_server.conf
Normal file
61
conf/gns3_server.conf
Normal file
@ -0,0 +1,61 @@
|
||||
[Server]
|
||||
; IP where the server listen for connections
|
||||
host = 0.0.0.0
|
||||
; HTTP port for controlling the servers
|
||||
port = 3080
|
||||
|
||||
; Option to enable SSL encryption
|
||||
ssl = False
|
||||
certfile=/home/gns3/.config/GNS3/ssl/server.cert
|
||||
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
|
||||
|
||||
; Option to automatically send crash reports to the GNS3 team
|
||||
report_errors = True
|
||||
|
||||
; First console port of the range allocated to devices
|
||||
console_start_port_range = 5000
|
||||
; Last console port of the range allocated to devices
|
||||
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
|
||||
; uBridge executable location, default: search in PATH
|
||||
;ubridge_path = ubridge
|
||||
|
||||
; Option to enable HTTP authentication.
|
||||
auth = False
|
||||
; Username for HTTP authentication.
|
||||
user = gns3
|
||||
; Password for HTTP authentication.
|
||||
password = gns3
|
||||
|
||||
[VPCS]
|
||||
; VPCS executable location, default: search in PATH
|
||||
;vpcs_path = vpcs
|
||||
|
||||
[Dynamips]
|
||||
; Enable auxiliary console ports on IOS routers
|
||||
allocate_aux_console_ports = False
|
||||
mmap_support = True
|
||||
; Dynamips executable path, default: search in PATH
|
||||
;dynamips_path = dynamips
|
||||
sparse_memory_support = True
|
||||
ghost_ios_support = True
|
||||
|
||||
[IOU]
|
||||
; iouyap executable path, default: search in PATH
|
||||
;iouyap_path = iouyap
|
||||
; Path of your .iourc file. If not provided, the file is searched in $HOME/.iourc
|
||||
iourc_path = /home/gns3/.iourc
|
||||
; Validate if the iourc license file is correct. If you turn this off and your licence is invalid IOU will not start and no errors will be shown.
|
||||
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
|
@ -1,8 +1,8 @@
|
||||
-rrequirements.txt
|
||||
|
||||
sphinx==1.2.3
|
||||
pytest==2.8.2
|
||||
pep8==1.5.7
|
||||
sphinx==1.4.8
|
||||
pytest==3.0.3
|
||||
pep8==1.7.0
|
||||
pytest-capturelog==0.7
|
||||
pytest-cov==2.2.0
|
||||
pytest-timeout==0.5
|
||||
pytest-cov==2.4.0
|
||||
pytest-timeout==1.0.0
|
||||
|
13
docs/api/examples/compute_delete_projectsprojectid.txt
Normal file
13
docs/api/examples/compute_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:39 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d5b66871-97f4-4350-955e-5526458090b5'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d5b66871-97f4-4350-955e-5526458090b5 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:34 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f4bfc62e-9cb5-464a-9888-25d140508d43/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f4bfc62e-9cb5-464a-9888-25d140508d43/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:33 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/9c5dcc8e-2639-4827-88d9-1e2692a05807/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/9c5dcc8e-2639-4827-88d9-1e2692a05807/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:35 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b4127e5f-c028-47ab-b170-c387b1a7c6b6'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b4127e5f-c028-47ab-b170-c387b1a7c6b6 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:36 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8fd79361-ff29-467f-99be-0f9a1bde208c/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8fd79361-ff29-467f-99be-0f9a1bde208c/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:37 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/70d2a639-76ae-46c4-b2d8-2eb13b99271a'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/70d2a639-76ae-46c4-b2d8-2eb13b99271a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/33ca3258-b392-4aa1-bde0-58c3a990844f/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/33ca3258-b392-4aa1-bde0-58c3a990844f/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8eb35200-b6ce-40d4-aaa1-b13ca51fb336'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8eb35200-b6ce-40d4-aaa1-b13ca51fb336 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0acbf2e9-24ac-4cd2-b700-e095dfd58f61/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0acbf2e9-24ac-4cd2-b700-e095dfd58f61/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/f7cb2147-a825-4bc9-8676-f3d60a07956d/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/f7cb2147-a825-4bc9-8676-f3d60a07956d/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/965aaa20-43aa-4f42-9bf8-85115d67fc44'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/965aaa20-43aa-4f42-9bf8-85115d67fc44 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/fb9f93f8-df63-44dd-acd6-0770ea2902f7/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/fb9f93f8-df63-44dd-acd6-0770ea2902f7/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
32
docs/api/examples/compute_get_capabilities.txt
Normal file
32
docs/api/examples/compute_get_capabilities.txt
Normal file
@ -0,0 +1,32 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/capabilities'
|
||||
|
||||
GET /v2/compute/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 347
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:33 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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.0.0dev2"
|
||||
}
|
19
docs/api/examples/compute_get_iouimages.txt
Normal file
19
docs/api/examples/compute_get_iouimages.txt
Normal file
@ -0,0 +1,19 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/iou/images'
|
||||
|
||||
GET /v2/compute/iou/images HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 72
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/iou/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "iou.bin",
|
||||
"path": "iou.bin"
|
||||
}
|
||||
]
|
240
docs/api/examples/compute_get_networkinterfaces.txt
Normal file
240
docs/api/examples/compute_get_networkinterfaces.txt
Normal file
@ -0,0 +1,240 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/network/interfaces'
|
||||
|
||||
GET /v2/compute/network/interfaces HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 5489
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:39 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/network/interfaces
|
||||
|
||||
[
|
||||
{
|
||||
"id": "bridge0",
|
||||
"ip_address": "",
|
||||
"mac_address": "3e:07:54:87:bc:00",
|
||||
"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": "vboxnet0",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:00",
|
||||
"name": "vboxnet0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet1",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:01",
|
||||
"name": "vboxnet1",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet2",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:02",
|
||||
"name": "vboxnet2",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet3",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:03",
|
||||
"name": "vboxnet3",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet4",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:04",
|
||||
"name": "vboxnet4",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet5",
|
||||
"ip_address": "192.168.33.1",
|
||||
"mac_address": "0a:00:27:00:00:05",
|
||||
"name": "vboxnet5",
|
||||
"netmask": null,
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet6",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:06",
|
||||
"name": "vboxnet6",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet7",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:07",
|
||||
"name": "vboxnet7",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"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"
|
||||
}
|
||||
]
|
23
docs/api/examples/compute_get_projects.txt
Normal file
23
docs/api/examples/compute_get_projects.txt
Normal file
@ -0,0 +1,23 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects'
|
||||
|
||||
GET /v2/compute/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 198
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:39 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
[
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
||||
]
|
17
docs/api/examples/compute_get_projectsprojectid.txt
Normal file
17
docs/api/examples/compute_get_projectsprojectid.txt
Normal file
@ -0,0 +1,17 @@
|
||||
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
|
||||
Content-Length: 80
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:39 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "40010203-0405-0607-0809-0a0b0c0d0e02"
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/63688721-cb81-429f-b938-e327f9b3c4f7'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/63688721-cb81-429f-b938-e327f9b3c4f7 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 3420
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:33 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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": "vboxnet0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet7",
|
||||
"special": true,
|
||||
"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_id": "63688721-cb81-429f-b938-e327f9b3c4f7",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/602ee631-d63a-4a23-bde6-e185c8586a41'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/602ee631-d63a-4a23-bde6-e185c8586a41 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 696
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:36 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"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-53/test_json5/project-files/iou/602ee631-d63a-4a23-bde6-e185c8586a41",
|
||||
"node_id": "602ee631-d63a-4a23-bde6-e185c8586a41",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": null,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/8f971e45-202f-4c5b-ae77-d917972e49f9'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/8f971e45-202f-4c5b-ae77-d917972e49f9 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 332
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "8f971e45-202f-4c5b-ae77-d917972e49f9",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "gns3nat5",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "tap"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -1,17 +1,15 @@
|
||||
curl -i -X GET 'http://localhost:8000/v1/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/84777300-eef4-4a3a-9135-d7009bdb0722'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8446fc34-650d-4cb8-bdcc-b36880870aff'
|
||||
|
||||
GET /v1/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/84777300-eef4-4a3a-9135-d7009bdb0722 HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8446fc34-650d-4cb8-bdcc-b36880870aff HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONNECTION: keep-alive
|
||||
CONTENT-LENGTH: 1353
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.4.0dev13
|
||||
X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
||||
Content-Length: 1415
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:40 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
@ -20,7 +18,8 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"console": 2001,
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
@ -42,15 +41,16 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:00:ab:07:22:00",
|
||||
"mac_address": "00:dd:80:0a:ff:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/8446fc34-650d-4cb8-bdcc-b36880870aff",
|
||||
"node_id": "8446fc34-650d-4cb8-bdcc-b36880870aff",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph3pfurip/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpf14u_0k4/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"usage": "",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpqqnauky9/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/84777300-eef4-4a3a-9135-d7009bdb0722",
|
||||
"vm_id": "84777300-eef4-4a3a-9135-d7009bdb0722"
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/aeeb5518-78b3-4d77-9073-235596129473'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/aeeb5518-78b3-4d77-9073-235596129473 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 471
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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": 5715,
|
||||
"enable_remote_console": false,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VMTEST",
|
||||
"node_directory": null,
|
||||
"node_id": "aeeb5518-78b3-4d77-9073-235596129473",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VMTEST"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1b881400-9368-4716-90cc-63903a486f6b'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1b881400-9368-4716-90cc-63903a486f6b HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5723,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/1b881400-9368-4716-90cc-63903a486f6b",
|
||||
"node_id": "1b881400-9368-4716-90cc-63903a486f6b",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped"
|
||||
}
|
31
docs/api/examples/compute_get_qemubinaries.txt
Normal file
31
docs/api/examples/compute_get_qemubinaries.txt
Normal file
@ -0,0 +1,31 @@
|
||||
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
|
||||
Content-Length: 212
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:42 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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"
|
||||
}
|
||||
]
|
18
docs/api/examples/compute_get_qemucapabilities.txt
Normal file
18
docs/api/examples/compute_get_qemucapabilities.txt
Normal file
@ -0,0 +1,18 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/capabilities'
|
||||
|
||||
GET /v2/compute/qemu/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 39
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/qemu/capabilities
|
||||
|
||||
{
|
||||
"kvm": [
|
||||
"x86_64"
|
||||
]
|
||||
}
|
17
docs/api/examples/compute_get_version.txt
Normal file
17
docs/api/examples/compute_get_version.txt
Normal file
@ -0,0 +1,17 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/version'
|
||||
|
||||
GET /v2/compute/version HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 49
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/version
|
||||
|
||||
{
|
||||
"local": true,
|
||||
"version": "2.0.0dev2"
|
||||
}
|
20
docs/api/examples/compute_post_projects.txt
Normal file
20
docs/api/examples/compute_post_projects.txt
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
Content-Length: 80
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:39 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
13
docs/api/examples/compute_post_projectsprojectidclose.txt
Normal file
13
docs/api/examples/compute_post_projectsprojectidclose.txt
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:40 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/close
|
||||
|
168
docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
Normal file
168
docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
Normal file
@ -0,0 +1,168 @@
|
||||
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
|
||||
Content-Length: 3420
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:33 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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": "vboxnet0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet7",
|
||||
"special": true,
|
||||
"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_id": "a2f2601d-a4e5-44bc-b02c-c4a1d0d44dda",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/fbcf95f9-daed-40b3-98a4-958527b4a9ab/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/fbcf95f9-daed-40b3-98a4-958527b4a9ab/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:33 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/35c828e2-816d-42c2-9fa5-7ef738331d18/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/35c828e2-816d-42c2-9fa5-7ef738331d18/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:35 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,19 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/ca9729cd-fcca-4e9c-9ede-3922f14412e1/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/ca9729cd-fcca-4e9c-9ede-3922f14412e1/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 145
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:35 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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-53/test_json5/tmp/captures/test.pcap"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/296d78b4-a923-407f-b398-cbab2b0214fd/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/296d78b4-a923-407f-b398-cbab2b0214fd/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:35 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
38
docs/api/examples/compute_post_projectsprojectidiounodes.txt
Normal file
38
docs/api/examples/compute_post_projectsprojectidiounodes.txt
Normal file
@ -0,0 +1,38 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "7ea587ce-aa0a-428c-9db9-7be8af8a50ff", "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": "7ea587ce-aa0a-428c-9db9-7be8af8a50ff",
|
||||
"path": "iou.bin",
|
||||
"startup_config_content": "hostname test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 712
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:36 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"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-53/test_json5/project-files/iou/7ea587ce-aa0a-428c-9db9-7be8af8a50ff",
|
||||
"node_id": "7ea587ce-aa0a-428c-9db9-7be8af8a50ff",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": "startup-config.cfg",
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0f8fc3eb-9743-4ae9-a174-1c1a79845fd0/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0f8fc3eb-9743-4ae9-a174-1c1a79845fd0/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 64
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:37 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,19 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/a4f82184-82ee-42c2-ac87-3efeeadf9aa2/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/a4f82184-82ee-42c2-ac87-3efeeadf9aa2/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 145
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:37 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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-53/test_json5/tmp/captures/test.pcap"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f88a75fe-1aae-42da-8708-ac90c5e62974/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f88a75fe-1aae-42da-8708-ac90c5e62974/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:37 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5a97d051-cd83-45aa-a3bd-c0cddcb271e0/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5a97d051-cd83-45aa-a3bd-c0cddcb271e0/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:36 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,35 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/70cfd09a-8f73-4e98-b3ca-7b5be4503536/start' -d '{"iourc_content": "test"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/70cfd09a-8f73-4e98-b3ca-7b5be4503536/start HTTP/1.1
|
||||
{
|
||||
"iourc_content": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 696
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:36 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"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-53/test_json5/project-files/iou/70cfd09a-8f73-4e98-b3ca-7b5be4503536",
|
||||
"node_id": "70cfd09a-8f73-4e98-b3ca-7b5be4503536",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": null,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/43ab05b1-df65-4a72-b4a6-8b89c62d3994/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/43ab05b1-df65-4a72-b4a6-8b89c62d3994/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:36 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/stop
|
||||
|
29
docs/api/examples/compute_post_projectsprojectidnatnodes.txt
Normal file
29
docs/api/examples/compute_post_projectsprojectidnatnodes.txt
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
||||
Content-Length: 332
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "f00cbccf-3f8e-4f4d-b6df-6ebcc2fa11e6",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "gns3nat4",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "tap"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/052cd13e-9491-4eff-8ee2-a6e73da57cfe/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/052cd13e-9491-4eff-8ee2-a6e73da57cfe/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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"
|
||||
}
|
16
docs/api/examples/compute_post_projectsprojectidportsudp.txt
Normal file
16
docs/api/examples/compute_post_projectsprojectidportsudp.txt
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
Content-Length: 25
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/ports/udp
|
||||
|
||||
{
|
||||
"udp_port": 10000
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
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/tmpf14u_0k4/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/tmpf14u_0k4/qemu-system-x86_64",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 1461
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:40 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"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:41:b1:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ed9f00e9-7d76-46e9-8fb9-43d804f441b1",
|
||||
"node_id": "ed9f00e9-7d76-46e9-8fb9-43d804f441b1",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpf14u_0k4/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c755f678-f17d-4537-869b-574d38b06d59/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c755f678-f17d-4537-869b-574d38b06d59/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "eth0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 409
|
||||
Content-Length: 81
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f86f3d6d-3b6c-41b7-8af1-1c5168181a80/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f86f3d6d-3b6c-41b7-8af1-1c5168181a80/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/387986c1-4eb8-451f-8832-5e7b1e37704c/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/387986c1-4eb8-451f-8832-5e7b1e37704c/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/resume
|
||||
|
@ -0,0 +1,56 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/700bd996-0978-47af-95dd-eae42b760ad4/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/700bd996-0978-47af-95dd-eae42b760ad4/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1415
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:40 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"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:0a:d4:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/700bd996-0978-47af-95dd-eae42b760ad4",
|
||||
"node_id": "700bd996-0978-47af-95dd-eae42b760ad4",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpf14u_0k4/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/da4818a2-35c5-4aba-ac2d-10b6b28a4cd5/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/da4818a2-35c5-4aba-ac2d-10b6b28a4cd5/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/stop
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/35a10bee-8fdc-4c40-a067-1352724da173/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/35a10bee-8fdc-4c40-a067-1352724da173/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,34 @@
|
||||
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
|
||||
Content-Length: 465
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5714,
|
||||
"enable_remote_console": false,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"node_directory": null,
|
||||
"node_id": "9780978f-b7ab-4243-8e27-b2a48ef72f83",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VM1"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/77a28b03-3158-4eb2-af77-d88f8a1b2200/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/77a28b03-3158-4eb2-af77-d88f8a1b2200/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b0e2a8ad-934c-4806-9154-24538b073a79/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b0e2a8ad-934c-4806-9154-24538b073a79/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8ac97f5b-697b-4d0c-b41e-d7d914bcc7e2/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8ac97f5b-697b-4d0c-b41e-d7d914bcc7e2/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/resume
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a3b339db-0e1c-4d4c-8465-408429c7fa63/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a3b339db-0e1c-4d4c-8465-408429c7fa63/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/start
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/e3748d02-e322-40cf-8b94-d5af6ee5e9cc/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/e3748d02-e322-40cf-8b94-d5af6ee5e9cc/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/stop
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/f0e9b164-6a0f-497d-aac2-c765b929dfba/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/f0e9b164-6a0f-497d-aac2-c765b929dfba/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,27 @@
|
||||
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
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5723,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/7646366b-a2c7-414d-a4b5-7d3f3ea961d0",
|
||||
"node_id": "7646366b-a2c7-414d-a4b5-7d3f3ea961d0",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/32835241-8384-44c3-a668-8e753e51b43c/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/32835241-8384-44c3-a668-8e753e51b43c/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4a397db4-613d-4e89-b721-311c5d8f94cd/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4a397db4-613d-4e89-b721-311c5d8f94cd/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/72889faf-c7b2-4414-8fce-040eed462026/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/72889faf-c7b2-4414-8fce-040eed462026/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5723,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/72889faf-c7b2-4414-8fce-040eed462026",
|
||||
"node_id": "72889faf-c7b2-4414-8fce-040eed462026",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4e9a0a90-0bf3-4f7d-9ca2-be1d5c4af7c7/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4e9a0a90-0bf3-4f7d-9ca2-be1d5c4af7c7/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/stop
|
||||
|
22
docs/api/examples/compute_post_qemuimg.txt
Normal file
22
docs/api/examples/compute_post_qemuimg.txt
Normal file
@ -0,0 +1,22 @@
|
||||
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
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/qemu/img
|
||||
|
@ -0,0 +1,168 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6268a74b-48da-44d7-95b9-af5e85b8290d' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6268a74b-48da-44d7-95b9-af5e85b8290d HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 3417
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:34 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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": "vboxnet0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet7",
|
||||
"special": true,
|
||||
"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_id": "6268a74b-48da-44d7-95b9-af5e85b8290d",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/20c27db4-d76a-4f03-a00f-1bebdcce38e1' -d '{"console": 5716, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/20c27db4-d76a-4f03-a00f-1bebdcce38e1 HTTP/1.1
|
||||
{
|
||||
"console": 5716,
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"name": "test",
|
||||
"start_command": "yes"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 653
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:35 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
|
||||
|
||||
{
|
||||
"adapters": 2,
|
||||
"aux": 5715,
|
||||
"console": 5716,
|
||||
"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-53/test_json5/project-files/docker/20c27db4-d76a-4f03-a00f-1bebdcce38e1",
|
||||
"node_id": "20c27db4-d76a-4f03-a00f-1bebdcce38e1",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"start_command": "yes",
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e0aebf5-cb73-4d90-969f-8a82cc655f2c' -d '{"console": 5715, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e0aebf5-cb73-4d90-969f-8a82cc655f2c HTTP/1.1
|
||||
{
|
||||
"console": 5715,
|
||||
"ethernet_adapters": 4,
|
||||
"iourc_content": "test",
|
||||
"l1_keepalives": true,
|
||||
"name": "test",
|
||||
"nvram": 2048,
|
||||
"ram": 512,
|
||||
"serial_adapters": 0,
|
||||
"startup_config_content": "hostname test",
|
||||
"use_default_iou_values": true
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 707
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:37 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5715,
|
||||
"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-53/test_json5/project-files/iou/9e0aebf5-cb73-4d90-969f-8a82cc655f2c",
|
||||
"node_id": "9e0aebf5-cb73-4d90-969f-8a82cc655f2c",
|
||||
"nvram": 2048,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 512,
|
||||
"serial_adapters": 0,
|
||||
"startup_config": "startup-config.cfg",
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/ad3edf65-c8e8-4e85-aa6b-052c261530cc' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/ad3edf65-c8e8-4e85-aa6b-052c261530cc HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 331
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:38 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"node_id": "ad3edf65-c8e8-4e85-aa6b-052c261530cc",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "gns3nat9",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "tap"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/63c3ba51-9d31-4b7b-a745-a517947787ee' -d '{"console": 5715, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/63c3ba51-9d31-4b7b-a745-a517947787ee HTTP/1.1
|
||||
{
|
||||
"console": 5715,
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
"name": "test",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1456
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:41 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5715,
|
||||
"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:87:ee:00",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/63c3ba51-9d31-4b7b-a745-a517947787ee",
|
||||
"node_id": "63c3ba51-9d31-4b7b-a745-a517947787ee",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpf14u_0k4/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/62db6581-fbbf-402a-80f4-6c3d03255316' -d '{"console": 5724, "name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/62db6581-fbbf-402a-80f4-6c3d03255316 HTTP/1.1
|
||||
{
|
||||
"console": 5724,
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 469
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:44 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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": 5724,
|
||||
"enable_remote_console": false,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "62db6581-fbbf-402a-80f4-6c3d03255316",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VMTEST"
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/6bde4c72-dfab-4965-b824-0e441c88509f' -d '{"console": 5725, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/6bde4c72-dfab-4965-b824-0e441c88509f HTTP/1.1
|
||||
{
|
||||
"console": 5725,
|
||||
"name": "test",
|
||||
"startup_script": "ip 192.168.1.1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 505
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:45 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5725,
|
||||
"console_type": "telnet",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps1t9o33m/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/6bde4c72-dfab-4965-b824-0e441c88509f",
|
||||
"node_id": "6bde4c72-dfab-4965-b824-0e441c88509f",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": "ip 192.168.1.1",
|
||||
"startup_script_path": "startup.vpc",
|
||||
"status": "stopped"
|
||||
}
|
13
docs/api/examples/controller_delete_computescomputeid.txt
Normal file
13
docs/api/examples/controller_delete_computescomputeid.txt
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:46 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/computes/{compute_id}
|
||||
|
13
docs/api/examples/controller_delete_projectsprojectid.txt
Normal file
13
docs/api/examples/controller_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/b0455c4a-bfc5-4a51-8af7-78e1e0ea633a'
|
||||
|
||||
DELETE /v2/projects/b0455c4a-bfc5-4a51-8af7-78e1e0ea633a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/5506c6ec-6ad5-48d1-9f8a-64ffd935124c/drawings/a1b54140-aef4-48e4-9170-b746df992632'
|
||||
|
||||
DELETE /v2/projects/5506c6ec-6ad5-48d1-9f8a-64ffd935124c/drawings/a1b54140-aef4-48e4-9170-b746df992632 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:47 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/drawings/{drawing_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/9e65c1ba-14af-48e3-874e-763be80af860/links/e89eed96-a7f7-494c-b96c-21dc769ecc16'
|
||||
|
||||
DELETE /v2/projects/9e65c1ba-14af-48e3-874e-763be80af860/links/e89eed96-a7f7-494c-b96c-21dc769ecc16 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:49 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/links/{link_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/784f3991-a161-4251-a6fd-c48f98535ef5/nodes/ec5a58db-4d16-404d-8187-6fd42837b1ed'
|
||||
|
||||
DELETE /v2/projects/784f3991-a161-4251-a6fd-c48f98535ef5/nodes/ec5a58db-4d16-404d-8187-6fd42837b1ed HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:51 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/43208878-9c36-42e4-ae28-f57ece320261/snapshots/8e80f61f-b53a-4021-bee5-cb5421713f2a'
|
||||
|
||||
DELETE /v2/projects/43208878-9c36-42e4-ae28-f57ece320261/snapshots/8e80f61f-b53a-4021-bee5-cb5421713f2a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 20 Oct 2016 08:52:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/snapshots/{snapshot_id}
|
||||
|
30
docs/api/examples/controller_get_computes.txt
Normal file
30
docs/api/examples/controller_get_computes.txt
Normal file
@ -0,0 +1,30 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes'
|
||||
|
||||
GET /v2/computes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 387
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:46 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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"
|
||||
}
|
||||
]
|
28
docs/api/examples/controller_get_computescomputeid.txt
Normal file
28
docs/api/examples/controller_get_computescomputeid.txt
Normal file
@ -0,0 +1,28 @@
|
||||
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
|
||||
Content-Length: 334
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:46 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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,14 @@
|
||||
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
|
||||
Content-Length: 2
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:46 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/computes/{compute_id}/{emulator}/{action:.+}
|
||||
|
||||
[]
|
@ -0,0 +1,21 @@
|
||||
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
|
||||
Content-Length: 95
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:46 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/computes/{compute_id}/{emulator}/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "linux.qcow2"
|
||||
},
|
||||
{
|
||||
"filename": "asav.qcow2"
|
||||
}
|
||||
]
|
22
docs/api/examples/controller_get_gns3vm.txt
Normal file
22
docs/api/examples/controller_get_gns3vm.txt
Normal file
@ -0,0 +1,22 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm'
|
||||
|
||||
GET /v2/gns3vm HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 148
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:47 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/gns3vm
|
||||
|
||||
{
|
||||
"enable": false,
|
||||
"engine": "vmware",
|
||||
"headless": false,
|
||||
"ram": 2048,
|
||||
"vcpus": 1,
|
||||
"vmname": null,
|
||||
"when_exit": "stop"
|
||||
}
|
39
docs/api/examples/controller_get_gns3vmengines.txt
Normal file
39
docs/api/examples/controller_get_gns3vmengines.txt
Normal file
@ -0,0 +1,39 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines'
|
||||
|
||||
GET /v2/gns3vm/engines HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1106
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:47 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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.0.0dev2/GNS3.VM.VMware.Workstation.2.0.0dev2.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.0.0dev2/GNS3.VM.VirtualBox.2.0.0dev2.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
|
||||
}
|
||||
]
|
18
docs/api/examples/controller_get_gns3vmenginesenginevms.txt
Normal file
18
docs/api/examples/controller_get_gns3vmenginesenginevms.txt
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
Content-Length: 40
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:47 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/gns3vm/engines/{engine}/vms
|
||||
|
||||
[
|
||||
{
|
||||
"vmname": "test"
|
||||
}
|
||||
]
|
27
docs/api/examples/controller_get_projects.txt
Normal file
27
docs/api/examples/controller_get_projects.txt
Normal file
@ -0,0 +1,27 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects'
|
||||
|
||||
GET /v2/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 428
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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-53/test_list_projects1",
|
||||
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
||||
]
|
25
docs/api/examples/controller_get_projectsprojectid.txt
Normal file
25
docs/api/examples/controller_get_projectsprojectid.txt
Normal file
@ -0,0 +1,25 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/1072b2a5-82cc-45f9-bd3d-ff2387e2bfff'
|
||||
|
||||
GET /v2/projects/1072b2a5-82cc-45f9-bd3d-ff2387e2bfff HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 379
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
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/tmp9a94t05k/projects/1072b2a5-82cc-45f9-bd3d-ff2387e2bfff",
|
||||
"project_id": "1072b2a5-82cc-45f9-bd3d-ff2387e2bfff",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/14d34aa3-2c4d-4737-b9b1-b9976a1c70f1/drawings'
|
||||
|
||||
GET /v2/projects/14d34aa3-2c4d-4737-b9b1-b9976a1c70f1/drawings HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 363
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:47 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/drawings
|
||||
|
||||
[
|
||||
{
|
||||
"drawing_id": "2f566962-18b6-420d-82c6-d68613957183",
|
||||
"project_id": "14d34aa3-2c4d-4737-b9b1-b9976a1c70f1",
|
||||
"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
|
||||
}
|
||||
]
|
49
docs/api/examples/controller_get_projectsprojectidlinks.txt
Normal file
49
docs/api/examples/controller_get_projectsprojectidlinks.txt
Normal file
@ -0,0 +1,49 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/69ab73a7-a498-49b2-968b-bc406897a545/links'
|
||||
|
||||
GET /v2/projects/69ab73a7-a498-49b2-968b-bc406897a545/links HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1111
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:48 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/links
|
||||
|
||||
[
|
||||
{
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "d9db6a61-ae1a-4f7d-991a-73c46f62dfab",
|
||||
"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": "fc041a38-4796-420d-bbe1-60c675aff332",
|
||||
"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": "cbeaeb2c-4bbf-42e5-a86f-e358040d7a5e",
|
||||
"port_number": 4
|
||||
}
|
||||
],
|
||||
"project_id": "69ab73a7-a498-49b2-968b-bc406897a545"
|
||||
}
|
||||
]
|
59
docs/api/examples/controller_get_projectsprojectidnodes.txt
Normal file
59
docs/api/examples/controller_get_projectsprojectidnodes.txt
Normal file
@ -0,0 +1,59 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/9376e8ee-f9ee-4a3d-943c-a6b54c2ae475/nodes'
|
||||
|
||||
GET /v2/projects/9376e8ee-f9ee-4a3d-943c-a6b54c2ae475/nodes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1264
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:49 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/nodes
|
||||
|
||||
[
|
||||
{
|
||||
"command_line": null,
|
||||
"compute_id": "example.com",
|
||||
"console": 2048,
|
||||
"console_host": "example.org",
|
||||
"console_type": null,
|
||||
"first_port_name": null,
|
||||
"height": 59,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10;font-familly: Verdana",
|
||||
"text": "test",
|
||||
"x": null,
|
||||
"y": -40
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "25b75f46-61a5-4931-9d6e-18b32f0e7533",
|
||||
"node_type": "vpcs",
|
||||
"port_name_format": "Ethernet{0}",
|
||||
"port_segment_size": 0,
|
||||
"ports": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"data_link_types": {
|
||||
"Ethernet": "DLT_EN10MB"
|
||||
},
|
||||
"link_type": "ethernet",
|
||||
"name": "Ethernet0",
|
||||
"port_number": 0,
|
||||
"short_name": "e0/0"
|
||||
}
|
||||
],
|
||||
"project_id": "9376e8ee-f9ee-4a3d-943c-a6b54c2ae475",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
"width": 65,
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
}
|
||||
]
|
@ -0,0 +1,57 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/b8e96d16-406c-47ad-aa38-af76c9ba22ef/nodes/1ebfcf89-b54b-4a72-bd86-c09bd2917796'
|
||||
|
||||
GET /v2/projects/b8e96d16-406c-47ad-aa38-af76c9ba22ef/nodes/1ebfcf89-b54b-4a72-bd86-c09bd2917796 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1084
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:50 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": null,
|
||||
"compute_id": "example.com",
|
||||
"console": 2048,
|
||||
"console_host": "example.org",
|
||||
"console_type": null,
|
||||
"first_port_name": null,
|
||||
"height": 59,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10;font-familly: Verdana",
|
||||
"text": "test",
|
||||
"x": null,
|
||||
"y": -40
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "1ebfcf89-b54b-4a72-bd86-c09bd2917796",
|
||||
"node_type": "vpcs",
|
||||
"port_name_format": "Ethernet{0}",
|
||||
"port_segment_size": 0,
|
||||
"ports": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"data_link_types": {
|
||||
"Ethernet": "DLT_EN10MB"
|
||||
},
|
||||
"link_type": "ethernet",
|
||||
"name": "Ethernet0",
|
||||
"port_number": 0,
|
||||
"short_name": "e0/0"
|
||||
}
|
||||
],
|
||||
"project_id": "b8e96d16-406c-47ad-aa38-af76c9ba22ef",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
"width": 65,
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/a66001f2-2f0c-4ec2-8b76-0fb9e90db9d4/nodes/51dc598c-3eb9-4215-bba8-fc9bba496202/dynamips/auto_idlepc'
|
||||
|
||||
GET /v2/projects/a66001f2-2f0c-4ec2-8b76-0fb9e90db9d4/nodes/51dc598c-3eb9-4215-bba8-fc9bba496202/dynamips/auto_idlepc HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 30
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}/dynamips/auto_idlepc
|
||||
|
||||
{
|
||||
"idlepc": "0x60606f54"
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/1bbfd840-733c-4511-bc41-062351c3592c/nodes/08a38782-ba77-4890-941c-5c322218ffc1/dynamips/idlepc_proposals'
|
||||
|
||||
GET /v2/projects/1bbfd840-733c-4511-bc41-062351c3592c/nodes/08a38782-ba77-4890-941c-5c322218ffc1/dynamips/idlepc_proposals HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 38
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}/dynamips/idlepc_proposals
|
||||
|
||||
[
|
||||
"0x60606f54",
|
||||
"0x33805a22"
|
||||
]
|
@ -0,0 +1,21 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/e833be41-24ed-45e3-86da-6aa77bf06f9c/snapshots'
|
||||
|
||||
GET /v2/projects/e833be41-24ed-45e3-86da-6aa77bf06f9c/snapshots HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 197
|
||||
Content-Type: application/json
|
||||
Date: Thu, 20 Oct 2016 08:52:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev2
|
||||
X-Route: /v2/projects/{project_id}/snapshots
|
||||
|
||||
[
|
||||
{
|
||||
"created_at": 1476953577,
|
||||
"name": "test",
|
||||
"project_id": "e833be41-24ed-45e3-86da-6aa77bf06f9c",
|
||||
"snapshot_id": "25faccd8-e064-4c4f-81ac-45c16ea6350c"
|
||||
}
|
||||
]
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user