mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-24 17:55:15 +00:00
Compare commits
851 Commits
Author | SHA1 | Date | |
---|---|---|---|
d006ea0f56 | |||
52260cba53 | |||
d55c73bc8e | |||
97391185e6 | |||
9a632fb823 | |||
cb02046e01 | |||
c53201b753 | |||
95e944257a | |||
e3b1eee85b | |||
5efc5684ba | |||
433f620905 | |||
49315adf79 | |||
a36fc37250 | |||
2b15da3d19 | |||
b3d83b1b0b | |||
60a145afbb | |||
a776b36e98 | |||
40263e14ca | |||
9b6b989d1b | |||
794dac31f5 | |||
ff47fd31e2 | |||
2215702ae8 | |||
03555a3489 | |||
35d5a4a21c | |||
abcddb99b8 | |||
62db0b628b | |||
38d9555f72 | |||
7754d7f211 | |||
875051d05e | |||
31c04cc95b | |||
a853e87fa5 | |||
9be293909e | |||
1beae95443 | |||
40af2a35e0 | |||
5ab85e5c9e | |||
8ad5670eeb | |||
d2564cee9b | |||
434f6a70dd | |||
a872f0328d | |||
11f290482d | |||
e4fdfbd091 | |||
dcff51eb75 | |||
a14ad2fc99 | |||
14fd8104b8 | |||
75890c8f5a | |||
81b2894658 | |||
94ceb2dda0 | |||
8850265cb6 | |||
66a237628a | |||
928d9f13f4 | |||
ecfa89cba8 | |||
6e5e9e3df9 | |||
56c580dc44 | |||
0250547479 | |||
89bbe0ef1b | |||
3c384a7bf0 | |||
5166d894eb | |||
e996b825c6 | |||
5e4f5fe2d1 | |||
a8b78a9b0a | |||
2c6063569a | |||
fdc9283e04 | |||
63a92c4a16 | |||
8dd4f63aca | |||
3bc4e951b8 | |||
8db9b89318 | |||
52577b55b2 | |||
3bb4f6f133 | |||
c5ef6b310d | |||
1bb760d3f0 | |||
65090c6f87 | |||
477091207d | |||
f968f6616f | |||
0f0dff3bbb | |||
57e2fd9943 | |||
ca6f014207 | |||
5f988bae2f | |||
bddf9ec2ac | |||
69f154d9cc | |||
db8296f548 | |||
3754a49cc0 | |||
15d190d911 | |||
553e137a13 | |||
3c5cbebfb4 | |||
a35eaa8e60 | |||
7931ee01b3 | |||
4fe2b746d0 | |||
183f602fc0 | |||
c271ef8c6a | |||
0c87d8e1bd | |||
7255754fef | |||
cf723962af | |||
1b3e47ce83 | |||
74695efe90 | |||
ea94731418 | |||
5dee4eb052 | |||
dc26be43c2 | |||
6f43f988c3 | |||
4e15f89604 | |||
382d8887d5 | |||
0d6adb0620 | |||
1e73962e33 | |||
3df3aa84ff | |||
7c981f9322 | |||
21ec2a6271 | |||
ce5ff93242 | |||
c254011b33 | |||
0d022a4d33 | |||
b85b4b73cc | |||
308706e3d4 | |||
7c1a079ee8 | |||
ae76a4f778 | |||
94ebd732a8 | |||
9bceaa89b7 | |||
8150c3007e | |||
21c83de445 | |||
6be5b6ffad | |||
9d94c47fc8 | |||
bd4de862c8 | |||
53e6ee1b3a | |||
4a5066c2a5 | |||
ea1c525181 | |||
0cfdde7b7e | |||
ae1a9d9a5f | |||
eff23eefe9 | |||
620de3ff25 | |||
fd911542f7 | |||
eabe4eb97e | |||
afb7eca27a | |||
cf3ed5a329 | |||
048d2c12d0 | |||
1080147cf5 | |||
b50246fc2b | |||
0f9df6a2f8 | |||
49c3ecf02e | |||
9e861a7340 | |||
1f44e08cdd | |||
9799dabb98 | |||
f8cba8cd50 | |||
4fe293f1d5 | |||
59dcdcc141 | |||
4815904737 | |||
ae1e027031 | |||
597e1e618d | |||
acd1d95a8e | |||
0caf74443b | |||
786159110e | |||
b9e7ccc14f | |||
10e7b32409 | |||
ac1eef256f | |||
00fc2fa007 | |||
19d184e04c | |||
db6485e702 | |||
106915f419 | |||
69fcf801c3 | |||
dc363bbd38 | |||
43236746f9 | |||
f038735595 | |||
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 | |||
1ddb16eca0 | |||
f6a3899603 | |||
3e6aec016b | |||
7d055968e5 | |||
7bc0570735 | |||
1ae17b74df | |||
cb6df28f59 | |||
3e89543ab9 | |||
a2ebbaa322 | |||
67e346ba92 | |||
acdc1e5ebb | |||
6d5085910c | |||
57fd72c35c | |||
672a617102 | |||
00f80f54e8 | |||
2bb062c61e | |||
a741662636 | |||
b00a09efaa | |||
54747ee618 | |||
fa0af7f4a2 | |||
694e1a2e68 | |||
d86cefaaeb | |||
d5895c3a47 | |||
871fea33e0 | |||
82f82f8cf9 | |||
7ebbdcd47c | |||
f052299eb1 | |||
c4ebdc0e37 | |||
b07dcf552c | |||
ce0d715895 | |||
342bcdb5b6 | |||
b44c2ea713 | |||
8cb5cedb5d | |||
da81b49fdc | |||
a496aaab9e | |||
cb70cfecd7 | |||
5c8b3f3f4c | |||
1eb77a0b3f | |||
a9b95eb242 | |||
d97325b113 | |||
26c7aedba6 | |||
f76f417e52 | |||
bc33683e47 | |||
ac24922300 | |||
c88c67e8ef | |||
7a523990a6 | |||
5b604da33a | |||
51738e19c3 | |||
f1bc2f22c3 | |||
6cea6c9162 | |||
f81d35cc29 | |||
885d93be02 | |||
be1efe8327 | |||
d21fa9e961 | |||
2857d9a070 | |||
d43e78a1d7 | |||
b46a0ff4ae | |||
5280644327 | |||
885a870ae8 | |||
e457df1777 | |||
801b94a964 | |||
ef7b4ef020 | |||
483431438a | |||
5a76f81271 | |||
9ccb55206d | |||
a0344576ba | |||
95d2bd0065 | |||
fa140e991c | |||
f4b79af45f | |||
c2da568543 | |||
390401000f | |||
4342b4346e | |||
cd836f146e | |||
ed0bae8689 | |||
a1bf9cdfd3 | |||
f414ce459a | |||
c3c7356ce3 | |||
366e9620dc | |||
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
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
gns3server/version.py merge=ours
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
*.py[cod]
|
||||
__pycache__
|
||||
|
||||
#py.test
|
||||
.cache
|
||||
@ -13,7 +14,6 @@ dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
@ -52,3 +52,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:
|
||||
|
291
CHANGELOG
291
CHANGELOG
@ -1,12 +1,271 @@
|
||||
# Change Log
|
||||
|
||||
## 2.0.0 beta 1 07/12/2016
|
||||
|
||||
* Fix crash if at controller loading the remote server is not a GNS3 server
|
||||
* Update the way we start controller to avoid hiding crash reports
|
||||
* Fix when you switch console from VNC to telnet it's fail
|
||||
* AttributeError: 'Project' object has no attribute 'emit'
|
||||
* Improve autostart logging
|
||||
* Fix warning when vmware is not installed
|
||||
* If a VMware command fail retry
|
||||
* Do not recurse scan for images in standard image directory
|
||||
* When we restore snapshot on a fail project do not crash
|
||||
* Catch error when qemuy can't connect to his console
|
||||
* Catch error when no space left on disk during export
|
||||
* Improve vmware error message for easier copy paste
|
||||
* Catch error if you export a project deleted from disk
|
||||
* Qemu UDP listen on all ips
|
||||
* Force yarl version >= 0.7.0
|
||||
* Ask user to refresh is user session if he just installed ubridge
|
||||
|
||||
## 2.0.0 alpha 4 24/11/2016
|
||||
|
||||
* Do not block traffic originating from an Ethernet interface in the cloud. Ref #771.
|
||||
* Prevent capture on non running node
|
||||
* Make the Ethernet side the source in uBridge connection and UDP tunnel the destination. Ref #771.
|
||||
* IOURC is a text box instead of a file path
|
||||
* Use vnetlib64.exe when possible
|
||||
* Multiple improvements around starting the GNS3 VM
|
||||
* Wait for the end of project loading before making new change
|
||||
* Avoid crash due to permission error on the .backup file
|
||||
* For security reason debug informations can only be exported from local server
|
||||
* Add more debug informations if VM failed to start
|
||||
* Fix opening a project whith the same non linked VM as current project
|
||||
* Return default symbol if user asked for a non existing symbol
|
||||
* Do not log warning at qemu exit on windows if it's normal
|
||||
* Speed up interfaces listening on Windows
|
||||
* Fix filtering special interfaces on Windows
|
||||
* If server answer not found explain this could be due to the usage of 1.X server
|
||||
* Do not reload a project via /load if the project is already opened
|
||||
* Fix you can not pass auto close at project creation
|
||||
* Fix traceback when sending invalid parameters to the server
|
||||
* Require ubridge 0.9.7 this fix error with IOL bridge creation
|
||||
* Display path of vnetlib during interface creations
|
||||
* Catch errors when listing images
|
||||
* Better handle compute unavailable errors
|
||||
* Fix NameError: name 'available_ram' is not define
|
||||
* If we can found a common subnet we return the host binding for link creation
|
||||
* Do not connect GNS3 to remote server via 169.254.X.X
|
||||
* Qemu telnet support multiple client connected
|
||||
* Support multiple client connected to the same VPCS console
|
||||
* Increase timeout for link creation
|
||||
* Support for serial console for Virtual BOX and VMware using asyncio
|
||||
* Fix timeout issues when starting VMware or VBox
|
||||
* Ask for reboot if VBoxManage is not found
|
||||
* Fix a crash with VirtualBox linked clone
|
||||
* Replace iouyap by ubridge to handle IOU connections. Fixes #614.
|
||||
* Lock VMware by VM instead of globally
|
||||
* Support bridge in cloud
|
||||
* Fix support of IOS images outside standard directories
|
||||
* Raise clean error when node timeout when stopped
|
||||
* Fix random VirtualBox creation error when using linked clone
|
||||
* Drop console_type serial, and enable_remote_console for Vbox and VMware
|
||||
* Do not dump iourc_content to .gns3 file
|
||||
* Forward server disconnected errors
|
||||
* Fix a crash when vboxmanage is not found
|
||||
* Raise error if IOU image is not configured
|
||||
* Fix crash when getting font
|
||||
* Fix a crash when default font is missing
|
||||
* Fix a crash when vmrun is not found
|
||||
|
||||
## 2.0.0 alpha 3 28/10/16
|
||||
|
||||
* Fix uuid of VirtualBox VM after a save as
|
||||
* Explain that segfault on IOU is a issue with the image
|
||||
* Fix crash when you import a corrupted SVG
|
||||
* Fix Error while creating link: Port 0 is not allocated. when you have an invalid interface
|
||||
* No timeout for listing images
|
||||
* Handle 408 HTTP status code (request timeout)
|
||||
* Move code for exposing VM ip to the VM itself. And display VM starting status
|
||||
* Fix a crash when we have error during export project
|
||||
* Improve remote server console host support when binding to 0.0.0.0
|
||||
* Fix port naming for atm switch
|
||||
* Fix port naming for FrameRelay switch
|
||||
* Catch permission errors when listing images
|
||||
* If we can't found the VMware version we use workstation
|
||||
* CURL API sample for creating a dynamips router
|
||||
* Fix crash in idlePC compute
|
||||
* Add sample api call for creating a qemu node
|
||||
* Try a different method in order to retrieve IP from VMware
|
||||
* Fix naming of IOU serial interfaces
|
||||
* Improve timeout management
|
||||
* When exporting debug information export GNS3 VM vmx content
|
||||
* /debug for exporting debug informations
|
||||
* Raise error if using a non linked clone VM twice
|
||||
* Fix a possible deadlock at exit
|
||||
* Fix import of some old dynamips topologies
|
||||
* Fix a crash with some old virtualbox topologies
|
||||
* Fix conflict issue between the GNS3VM and a remote server
|
||||
* Fix typo in error message about the GNS3 VM
|
||||
* Fix an error when importing old topology without color for label
|
||||
* Use tap adapter instead of veth for docker (allow usage of vlan)
|
||||
* Avoid crash during tests if VNC server run on host PC
|
||||
|
||||
## 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.
|
||||
* Extract private-config only when necessary (content is different than the default). Fixes #520.
|
||||
* Fixes disabling the VPCS relay feature. Fixes #521.
|
||||
* Fixes wrong exception in Docker VM implementation.
|
||||
* Force Npcap DLL to be used first for Dynamips and uBridge (instead of the one from Winpcap if installed).
|
||||
* Fixed startup-config is lost if you change any IOS router settings. Fixes #1233.
|
||||
* Fixes check for NPF service and add check for NPCAP service on Windows.
|
||||
* Fix ProcessLookupError X11VNC
|
||||
* Force tag latest for docker image if no tag is specified
|
||||
* Cleanup unbreakable space
|
||||
* Do not raise error if vmrun.exe is named vmrun.EXE
|
||||
* Load docker api only for Linux
|
||||
|
||||
## 1.5.0a2 10/05/2016
|
||||
|
||||
* Fix distribution on PyPi
|
||||
|
||||
## 1.5.0a1 10/05/2016
|
||||
|
||||
* Rebase Qcow2 disks when starting a VM if needed
|
||||
* Docker support
|
||||
* import / export portable projects (.gns3project)
|
||||
|
||||
## 1.4.6 28/04/2016
|
||||
## 1.4.6 28/04/2016
|
||||
|
||||
* More robust save/restore for VirtualBox linked clone VM hard disks.
|
||||
* Prevent non linked cloned hard disks to be detached when using VirtualBox linked cloned VMs. Fixes #1184.
|
||||
@ -115,7 +374,7 @@
|
||||
* Support VM usage for qemu
|
||||
* Raise an error if psutil version is invalid
|
||||
|
||||
## 1.4.0rc1 12/11/2015
|
||||
## 1.4.0rc1 12/11/2015
|
||||
|
||||
* Raise error if server received windows path
|
||||
* Update sentry key
|
||||
@ -255,7 +514,7 @@
|
||||
* Send an error when vmware executable cannot be found on Linux. Fixes #288.
|
||||
* Support for CPUs setting for Qemu VMs.
|
||||
|
||||
## 1.4.0alpha4 04/08/2015
|
||||
## 1.4.0alpha4 04/08/2015
|
||||
|
||||
* Quote command in qemu debug logs so you can copy/paste them
|
||||
* Support for Qemu disk interfaces, cd/dvd-rom image and boot priority. Fixes #278.
|
||||
@ -263,11 +522,11 @@
|
||||
* Catch GeneratorExit exception when trying to create a Ghost IOS image.
|
||||
* Backport: removes code that deletes IOS router instance files.
|
||||
|
||||
## 1.3.9 03/08/2015
|
||||
## 1.3.9 03/08/2015
|
||||
|
||||
* Backport: removes code that deletes IOS router instance files.
|
||||
|
||||
## 1.4.0alpha3 28/07/2015
|
||||
## 1.4.0alpha3 28/07/2015
|
||||
|
||||
* Raise error if qemu image already exist when creating disk
|
||||
* Prevent user to create a qemu to a different directory on non local server
|
||||
@ -287,7 +546,7 @@
|
||||
* Update documentation
|
||||
* API for listing current projects
|
||||
|
||||
## 1.3.8 27/07/2015
|
||||
## 1.3.8 27/07/2015
|
||||
|
||||
* Catch ProcessLookupError when updating iouyap config. Fixes #255.
|
||||
* Fixes IOS adapters and WICS cannot be removed. Fixes #282.
|
||||
@ -304,7 +563,7 @@
|
||||
* Backport from 1.4: Fixes RuntimeError: Event loop is closed.
|
||||
* Backport from 1.4: Bind host on 0.0.0.0 when checking for a free UDP port.
|
||||
|
||||
## 1.4.0alpha2 22/07/2015
|
||||
## 1.4.0alpha2 22/07/2015
|
||||
|
||||
* Deactivate uBridge process monitoring (process returns 1 on Windows when stopping).
|
||||
* Prevent using different hypervisors that leverage hardware virtualization. - Implemented for Qemu when a VMware or VirtualBox VM with hardware virtualization is already running. - Implemented for VirtualBox only when a Qemu VM with KVM is already running.
|
||||
@ -359,15 +618,15 @@
|
||||
* A notification stream with process monitoring
|
||||
* VMware support
|
||||
|
||||
## 1.3.7 22/06/2015
|
||||
## 1.3.7 22/06/2015
|
||||
|
||||
* Prevent install on Python 2
|
||||
|
||||
## 1.3.6 16/06/2015
|
||||
## 1.3.6 16/06/2015
|
||||
|
||||
* Fix an issue with 1.4dev compatibility
|
||||
|
||||
## 1.3.5 16/06/15
|
||||
## 1.3.5 16/06/15
|
||||
|
||||
* Ignore invalid characters when reading the output of a process
|
||||
* Turn on / off authentication
|
||||
@ -527,7 +786,7 @@
|
||||
* Initialize chassis when creating an IOS router. Fixes #107.
|
||||
* Lock the dynamips reader an writer
|
||||
|
||||
## 1.3.0rc1 19/03/2015
|
||||
## 1.3.0rc1 19/03/2015
|
||||
|
||||
* Save IOS router config when saving the project
|
||||
* Look in legacy IOU images directory
|
||||
@ -536,7 +795,7 @@
|
||||
* Support all QEMU status
|
||||
* Bind tunnel UDP to the correct source index
|
||||
|
||||
## 1.3.0beta2 13/03/2015
|
||||
## 1.3.0beta2 13/03/2015
|
||||
|
||||
* Fixed issue when VBoxManage returns an error.
|
||||
* Server handler to shutdown a local server.
|
||||
@ -546,7 +805,7 @@
|
||||
* Alternative local server shutdown (intended for Windows).
|
||||
* Request user permission to kill the local server if it cannot be stopped.
|
||||
|
||||
## 1.3.0beta1 11/03/2015
|
||||
## 1.3.0beta1 11/03/2015
|
||||
|
||||
* Optional IOU license key check.
|
||||
* Relative path support of IOU, IOS and Qemu images.
|
||||
@ -569,7 +828,7 @@
|
||||
* Fixed Telnet server initialization issue in VirtualBox.
|
||||
* Disconnect network cable if adapter is not attached in VirtualBox vNIC.
|
||||
|
||||
## 1.3.0alpha1 03/03/2015
|
||||
## 1.3.0alpha1 03/03/2015
|
||||
|
||||
* HTTP Rest API instead of WebSocket
|
||||
* API documentation
|
||||
@ -584,7 +843,7 @@
|
||||
|
||||
## 1.2.2 2015/01/16
|
||||
|
||||
### Small improvements / new features
|
||||
### Small improvements / new features
|
||||
|
||||
* Auxiliary console support for IOS routers.
|
||||
* Suspend / resume support for Qemu.
|
||||
@ -616,7 +875,7 @@
|
||||
* VirtualBox linked clones support (experimental, still some problems with temporary projects).
|
||||
|
||||
|
||||
## 1.1 2014/10/23
|
||||
## 1.1 2014/10/23
|
||||
|
||||
* Serial console for local VirtualBox.
|
||||
|
||||
|
@ -18,13 +18,17 @@ 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
|
||||
|
||||
## Asking for new features
|
||||
## 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
|
||||
from the whole community.
|
||||
|
||||
|
||||
## Contributing code
|
||||
## Contributing code
|
||||
|
||||
We welcome code contribution from everyone including beginners.
|
||||
Don't be afraid to submit a half finished or mediocre contribution and we will help you.
|
||||
@ -45,6 +49,6 @@ The reason we do this is to ensure, to the extent possible, that we don’t “t
|
||||
|
||||
More information there: https://github.com/GNS3/cla
|
||||
|
||||
### Pull requests
|
||||
### Pull requests
|
||||
|
||||
Creating a pull request is the easiest way to contribute code. Do not hesitate to create one early when contributing for new feature in order to get our feedback.
|
||||
|
@ -4,6 +4,7 @@ include INSTALL
|
||||
include LICENSE
|
||||
include MANIFEST.in
|
||||
include tox.ini
|
||||
include requirements.txt
|
||||
recursive-include tests *
|
||||
recursive-exclude docs *
|
||||
recursive-include gns3server *
|
||||
|
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.5
|
||||
pytest==3.0.5
|
||||
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.2.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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/f071242d-f471-48b3-b963-c668718b7f2a'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f071242d-f471-48b3-b963-c668718b7f2a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/f9aa4e6e-1082-472d-ab1b-803eaa542adb/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f9aa4e6e-1082-472d-ab1b-803eaa542adb/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/991594a0-9c41-451d-ad22-d56ed44e8ea8/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/991594a0-9c41-451d-ad22-d56ed44e8ea8/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/ff87fec7-46c6-4d68-960a-01aec1f810f7'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/ff87fec7-46c6-4d68-960a-01aec1f810f7 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/99997a0b-3740-4565-b1fd-712bc3aba780/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/99997a0b-3740-4565-b1fd-712bc3aba780/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/ed141b3d-812b-411f-b7b6-e242b3f48706'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/ed141b3d-812b-411f-b7b6-e242b3f48706 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/d5453617-a24e-4ff4-9cfb-ab9e59bfe888/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d5453617-a24e-4ff4-9cfb-ab9e59bfe888/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/dcac780f-c640-47bb-9e68-f06220db3d70'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/dcac780f-c640-47bb-9e68-f06220db3d70 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/09fac426-76fd-4ce1-9762-ddeb6fb17baa/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/09fac426-76fd-4ce1-9762-ddeb6fb17baa/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/7d36663b-94f8-41e8-be89-ae87c53bbd7a/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7d36663b-94f8-41e8-be89-ae87c53bbd7a/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/17e0476a-e63c-4227-9e08-74086d3a8419'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/17e0476a-e63c-4227-9e08-74086d3a8419 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/e3d75d10-4ed3-4c81-a91e-1f23b9a7f483/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e3d75d10-4ed3-4c81-a91e-1f23b9a7f483/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:51 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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.0dev4"
|
||||
}
|
21
docs/api/examples/compute_get_iouimages.txt
Normal file
21
docs/api/examples/compute_get_iouimages.txt
Normal file
@ -0,0 +1,21 @@
|
||||
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: 149
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/iou/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "iou.bin",
|
||||
"filesize": 7,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
[
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
|
||||
}
|
||||
]
|
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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/27e91192-5c83-4c98-af0f-b25b156c22b0'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/27e91192-5c83-4c98-af0f-b25b156c22b0 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 3420
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:51 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": "27e91192-5c83-4c98-af0f-b25b156c22b0",
|
||||
"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/85fe2caa-d9a7-46c3-b9bb-34e229c2594b'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/85fe2caa-d9a7-46c3-b9bb-34e229c2594b HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 697
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5000,
|
||||
"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-105/test_json5/project-files/iou/85fe2caa-d9a7-46c3-b9bb-34e229c2594b",
|
||||
"node_id": "85fe2caa-d9a7-46c3-b9bb-34e229c2594b",
|
||||
"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/351021bf-5bbf-4bd4-beff-19b62b447f05'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/351021bf-5bbf-4bd4-beff-19b62b447f05 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 332
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "351021bf-5bbf-4bd4-beff-19b62b447f05",
|
||||
"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/4a4b647d-f696-4a21-9fc2-2a56cdad39dd'
|
||||
|
||||
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/4a4b647d-f696-4a21-9fc2-2a56cdad39dd 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, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": 5000,
|
||||
"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:39:dd:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/4a4b647d-f696-4a21-9fc2-2a56cdad39dd",
|
||||
"node_id": "4a4b647d-f696-4a21-9fc2-2a56cdad39dd",
|
||||
"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/tmp4__9bvkj/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,29 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/afdfa713-f35c-4749-b165-77e9afd1a853'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/afdfa713-f35c-4749-b165-77e9afd1a853 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 435
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": 5000,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VMTEST",
|
||||
"node_directory": null,
|
||||
"node_id": "afdfa713-f35c-4749-b165-77e9afd1a853",
|
||||
"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/ea81751a-8e28-4226-942d-b56e3f3e5709'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/ea81751a-8e28-4226-942d-b56e3f3e5709 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5000,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/ea81751a-8e28-4226-942d-b56e3f3e5709",
|
||||
"node_id": "ea81751a-8e28-4226-942d-b56e3f3e5709",
|
||||
"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, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/version
|
||||
|
||||
{
|
||||
"local": true,
|
||||
"version": "2.0.0dev4"
|
||||
}
|
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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:51 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": "c02a0a78-b84e-44b9-b151-0a650ecd7bb8",
|
||||
"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/69c8e1b3-c2e2-48a1-a647-2ab7b44152dc/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/69c8e1b3-c2e2-48a1-a647-2ab7b44152dc/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, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/56c56eaa-3262-4459-9dc4-7225ed4eb3d5/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/56c56eaa-3262-4459-9dc4-7225ed4eb3d5/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, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/e2694da2-b2a4-4c7a-87aa-22814f7bbc75/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/e2694da2-b2a4-4c7a-87aa-22814f7bbc75/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: 146
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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-105/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/a6e26e68-18ed-4303-85cd-a342503a2ea0/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a6e26e68-18ed-4303-85cd-a342503a2ea0/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": "4ade4a52-c7b2-4ed8-abce-3598e4214c0a", "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": "4ade4a52-c7b2-4ed8-abce-3598e4214c0a",
|
||||
"path": "iou.bin",
|
||||
"startup_config_content": "hostname test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 713
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5000,
|
||||
"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-105/test_json5/project-files/iou/4ade4a52-c7b2-4ed8-abce-3598e4214c0a",
|
||||
"node_id": "4ade4a52-c7b2-4ed8-abce-3598e4214c0a",
|
||||
"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/1dd3b2b3-3d60-466f-9204-378b6b368572/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/1dd3b2b3-3d60-466f-9204-378b6b368572/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, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/68117b25-55ae-4066-b1b0-80551439d8e3/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/68117b25-55ae-4066-b1b0-80551439d8e3/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: 146
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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-105/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/56bdd97b-c85e-45ba-b8d3-23214cc65684/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/56bdd97b-c85e-45ba-b8d3-23214cc65684/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/f207ba5a-a9f9-4104-a216-814cae606bc2/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f207ba5a-a9f9-4104-a216-814cae606bc2/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/9b1a4092-9c1e-4714-97eb-2c9099a36f74/start' -d '{"iourc_content": "test"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9b1a4092-9c1e-4714-97eb-2c9099a36f74/start HTTP/1.1
|
||||
{
|
||||
"iourc_content": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 697
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5000,
|
||||
"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-105/test_json5/project-files/iou/9b1a4092-9c1e-4714-97eb-2c9099a36f74",
|
||||
"node_id": "9b1a4092-9c1e-4714-97eb-2c9099a36f74",
|
||||
"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/04a1ad32-27f8-4162-9c97-e2ab0051b57b/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/04a1ad32-27f8-4162-9c97-e2ab0051b57b/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:53 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "f8572394-f4a6-41c2-8990-76191f85976c",
|
||||
"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/2e34595b-ab09-4df5-b0d5-27d26fc8cfeb/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/2e34595b-ab09-4df5-b0d5-27d26fc8cfeb/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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/tmp4__9bvkj/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/tmp4__9bvkj/qemu-system-x86_64",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 1461
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": 5000,
|
||||
"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:04:23:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/26ee1a57-b93e-49e3-bcab-f495734c0423",
|
||||
"node_id": "26ee1a57-b93e-49e3-bcab-f495734c0423",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp4__9bvkj/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/cd663ba1-9a14-4c86-9c5e-5e5122b15519/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/cd663ba1-9a14-4c86-9c5e-5e5122b15519/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, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/8f74240d-cbc9-4b97-b27a-336ef70b8304/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8f74240d-cbc9-4b97-b27a-336ef70b8304/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/08a64ae9-b47a-478c-92ce-4646c795c433/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/08a64ae9-b47a-478c-92ce-4646c795c433/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/12876bc4-6262-41d0-87bf-2a0762d63290/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/12876bc4-6262-41d0-87bf-2a0762d63290/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1415
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": 5000,
|
||||
"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:32:90:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/12876bc4-6262-41d0-87bf-2a0762d63290",
|
||||
"node_id": "12876bc4-6262-41d0-87bf-2a0762d63290",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp4__9bvkj/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/d6886ce2-45ec-4a17-891d-7dd00e32784b/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d6886ce2-45ec-4a17-891d-7dd00e32784b/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/5c8d29b0-ca7e-4430-aaca-a2528cfec782/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/5c8d29b0-ca7e-4430-aaca-a2528cfec782/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,33 @@
|
||||
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: 429
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5000,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"node_directory": null,
|
||||
"node_id": "91fe27cf-47af-40a9-85a1-d4e3c80dc826",
|
||||
"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/a6a1fde9-419d-481d-ad56-154da1d8fdcb/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/a6a1fde9-419d-481d-ad56-154da1d8fdcb/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, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/106d35ba-148b-4a00-8e4b-275f56f0a9c7/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/106d35ba-148b-4a00-8e4b-275f56f0a9c7/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/7b408f89-7560-473e-a95d-eaf6cf7cc9d8/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7b408f89-7560-473e-a95d-eaf6cf7cc9d8/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/90c774f6-2f06-4085-9e1a-f069aa558063/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/90c774f6-2f06-4085-9e1a-f069aa558063/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/a1a6ae70-9521-40ab-ae07-c4afaa5276e6/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a1a6ae70-9521-40ab-ae07-c4afaa5276e6/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/dd4fec46-330e-4ac9-bd33-bbe627eb58dd/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dd4fec46-330e-4ac9-bd33-bbe627eb58dd/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5000,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/97bd62ea-c059-43f0-a5a1-016d7eb0d921",
|
||||
"node_id": "97bd62ea-c059-43f0-a5a1-016d7eb0d921",
|
||||
"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/edf434e7-d3f1-44c6-ad60-e539bf2a4a6e/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/edf434e7-d3f1-44c6-ad60-e539bf2a4a6e/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, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/b9d873d6-d53e-4765-b026-1571f5df4a38/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b9d873d6-d53e-4765-b026-1571f5df4a38/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/cd0a7422-7bd9-47e9-81a6-e7ec0bf79bff/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/cd0a7422-7bd9-47e9-81a6-e7ec0bf79bff/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5000,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/cd0a7422-7bd9-47e9-81a6-e7ec0bf79bff",
|
||||
"node_id": "cd0a7422-7bd9-47e9-81a6-e7ec0bf79bff",
|
||||
"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/1077534f-0902-487a-9826-df49dfd223eb/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1077534f-0902-487a-9826-df49dfd223eb/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:57 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/1609e4ce-3925-4dfa-beb9-a37bb6e4eba8' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/1609e4ce-3925-4dfa-beb9-a37bb6e4eba8 HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 3417
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": "1609e4ce-3925-4dfa-beb9-a37bb6e4eba8",
|
||||
"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/5ffe52e9-7dde-4ec2-9df4-98760b1d8bb8' -d '{"console": 5003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/5ffe52e9-7dde-4ec2-9df4-98760b1d8bb8 HTTP/1.1
|
||||
{
|
||||
"console": 5003,
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"name": "test",
|
||||
"start_command": "yes"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 654
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:52 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
|
||||
|
||||
{
|
||||
"adapters": 2,
|
||||
"aux": 5002,
|
||||
"console": 5003,
|
||||
"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-105/test_json5/project-files/docker/5ffe52e9-7dde-4ec2-9df4-98760b1d8bb8",
|
||||
"node_id": "5ffe52e9-7dde-4ec2-9df4-98760b1d8bb8",
|
||||
"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/2aec8581-8312-4c46-9c64-8801854aea79' -d '{"console": 5002, "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/2aec8581-8312-4c46-9c64-8801854aea79 HTTP/1.1
|
||||
{
|
||||
"console": 5002,
|
||||
"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: 708
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:54 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5002,
|
||||
"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-105/test_json5/project-files/iou/2aec8581-8312-4c46-9c64-8801854aea79",
|
||||
"node_id": "2aec8581-8312-4c46-9c64-8801854aea79",
|
||||
"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/7061bfeb-39f5-4b27-9557-2420b81fac6c' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/7061bfeb-39f5-4b27-9557-2420b81fac6c HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 331
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:55 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"node_id": "7061bfeb-39f5-4b27-9557-2420b81fac6c",
|
||||
"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/b99813b1-5ff4-485e-9f83-8e3cb55649fb' -d '{"console": 5002, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b99813b1-5ff4-485e-9f83-8e3cb55649fb HTTP/1.1
|
||||
{
|
||||
"console": 5002,
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
"name": "test",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1456
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:56 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": 5002,
|
||||
"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:49:fb:00",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/b99813b1-5ff4-485e-9f83-8e3cb55649fb",
|
||||
"node_id": "b99813b1-5ff4-485e-9f83-8e3cb55649fb",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp4__9bvkj/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/99b36e74-6202-4c94-a64a-4e90a177fb19' -d '{"console": 5002, "name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/99b36e74-6202-4c94-a64a-4e90a177fb19 HTTP/1.1
|
||||
{
|
||||
"console": 5002,
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 433
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:58 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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": 5002,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "99b36e74-6202-4c94-a64a-4e90a177fb19",
|
||||
"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/1fb10f34-00dc-48d8-8a07-ee9337e03c06' -d '{"console": 5002, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1fb10f34-00dc-48d8-8a07-ee9337e03c06 HTTP/1.1
|
||||
{
|
||||
"console": 5002,
|
||||
"name": "test",
|
||||
"startup_script": "ip 192.168.1.1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 505
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5002,
|
||||
"console_type": "telnet",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpy_0wuy69/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/1fb10f34-00dc-48d8-8a07-ee9337e03c06",
|
||||
"node_id": "1fb10f34-00dc-48d8-8a07-ee9337e03c06",
|
||||
"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, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/5a0dc853-249e-4f7b-ac4e-00bdef741285'
|
||||
|
||||
DELETE /v2/projects/5a0dc853-249e-4f7b-ac4e-00bdef741285 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:20:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/dae36643-b4b9-489d-b4c1-0d6bf8c6a079/drawings/59f70a89-21a8-4e7f-a3d4-a9c559c73f58'
|
||||
|
||||
DELETE /v2/projects/dae36643-b4b9-489d-b4c1-0d6bf8c6a079/drawings/59f70a89-21a8-4e7f-a3d4-a9c559c73f58 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:20:00 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/drawings/{drawing_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/90d544c0-ecc1-43c4-9daf-f349a7fbc647/links/8975791d-acea-404c-9c4f-afc9cb74f08c'
|
||||
|
||||
DELETE /v2/projects/90d544c0-ecc1-43c4-9daf-f349a7fbc647/links/8975791d-acea-404c-9c4f-afc9cb74f08c HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:20:01 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/links/{link_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/a345928e-d655-457d-bd8e-5ece2233b547/nodes/a155fe6a-c8bc-4cd3-8200-76e43e17b26c'
|
||||
|
||||
DELETE /v2/projects/a345928e-d655-457d-bd8e-5ece2233b547/nodes/a155fe6a-c8bc-4cd3-8200-76e43e17b26c HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:20:02 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/dd06697e-76d3-46a9-951e-c3e360c17759/snapshots/76eb2f34-7854-4fd6-9354-4227f401bd07'
|
||||
|
||||
DELETE /v2/projects/dd06697e-76d3-46a9-951e-c3e360c17759/snapshots/76eb2f34-7854-4fd6-9354-4227f401bd07 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Thu, 03 Nov 2016 17:20:04 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:19:59 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:20:00 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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, 03 Nov 2016 17:20:00 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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.0dev4/GNS3.VM.VMware.Workstation.2.0.0dev4.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.0dev4/GNS3.VM.VirtualBox.2.0.0dev4.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, 03 Nov 2016 17:20:00 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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: 429
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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-105/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/0714c0ef-654f-402d-9b5f-9a42431478c9'
|
||||
|
||||
GET /v2/projects/0714c0ef-654f-402d-9b5f-9a42431478c9 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 379
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
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/tmpibw102pd/projects/0714c0ef-654f-402d-9b5f-9a42431478c9",
|
||||
"project_id": "0714c0ef-654f-402d-9b5f-9a42431478c9",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/b46d5053-9683-4b4b-ae08-d67fdd8016a3/drawings'
|
||||
|
||||
GET /v2/projects/b46d5053-9683-4b4b-ae08-d67fdd8016a3/drawings HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 363
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:00 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/drawings
|
||||
|
||||
[
|
||||
{
|
||||
"drawing_id": "f0d4d443-3a0e-4319-897b-b58d87668092",
|
||||
"project_id": "b46d5053-9683-4b4b-ae08-d67fdd8016a3",
|
||||
"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/ca14de30-087a-4994-bb54-b2b00e18d1ef/links'
|
||||
|
||||
GET /v2/projects/ca14de30-087a-4994-bb54-b2b00e18d1ef/links HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1111
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:01 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/links
|
||||
|
||||
[
|
||||
{
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "398c9cb0-724e-4d56-a9b5-2b33831c8c39",
|
||||
"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": "f931da2a-abe7-4e8b-8b40-385fa091cb4d",
|
||||
"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": "3fcc232f-a6df-422c-800a-39ca356661d5",
|
||||
"port_number": 4
|
||||
}
|
||||
],
|
||||
"project_id": "ca14de30-087a-4994-bb54-b2b00e18d1ef"
|
||||
}
|
||||
]
|
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/a75e8c91-cb8a-4d9f-8d66-8180793b3c1c/nodes'
|
||||
|
||||
GET /v2/projects/a75e8c91-cb8a-4d9f-8d66-8180793b3c1c/nodes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1305
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:01 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/nodes
|
||||
|
||||
[
|
||||
{
|
||||
"command_line": null,
|
||||
"compute_id": "example.com",
|
||||
"console": 2048,
|
||||
"console_host": "<MagicMock name='mock.console_host' id='4552667992'>",
|
||||
"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": "efe73b73-94c6-40d8-bdaf-df0e2948940c",
|
||||
"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": "a75e8c91-cb8a-4d9f-8d66-8180793b3c1c",
|
||||
"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/e1b0cf1f-9284-4cd8-af88-047c18def631/nodes/160fed8d-9518-448a-8adf-6678f40cdfbe'
|
||||
|
||||
GET /v2/projects/e1b0cf1f-9284-4cd8-af88-047c18def631/nodes/160fed8d-9518-448a-8adf-6678f40cdfbe HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1125
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:01 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": null,
|
||||
"compute_id": "example.com",
|
||||
"console": 2048,
|
||||
"console_host": "<MagicMock name='mock.console_host' id='4556132928'>",
|
||||
"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": "160fed8d-9518-448a-8adf-6678f40cdfbe",
|
||||
"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": "e1b0cf1f-9284-4cd8-af88-047c18def631",
|
||||
"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/db5ec58a-09ff-497e-9631-1472bf262a3d/nodes/563ae8d3-cab5-4c53-b0db-b2d0d0eee741/dynamips/auto_idlepc'
|
||||
|
||||
GET /v2/projects/db5ec58a-09ff-497e-9631-1472bf262a3d/nodes/563ae8d3-cab5-4c53-b0db-b2d0d0eee741/dynamips/auto_idlepc HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 30
|
||||
Content-Type: application/json
|
||||
Date: Thu, 03 Nov 2016 17:20:02 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev4
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}/dynamips/auto_idlepc
|
||||
|
||||
{
|
||||
"idlepc": "0x60606f54"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user