2016-11-03 17:20:51 +00:00
|
|
|
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"}'
|
2016-08-25 12:43:19 +00:00
|
|
|
|
2016-11-03 17:20:51 +00:00
|
|
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/1609e4ce-3925-4dfa-beb9-a37bb6e4eba8 HTTP/1.1
|
2016-08-25 12:43:19 +00:00
|
|
|
{
|
|
|
|
"name": "test"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
2016-09-27 15:15:40 +00:00
|
|
|
Content-Length: 3417
|
|
|
|
Content-Type: application/json
|
2016-11-03 17:20:51 +00:00
|
|
|
Date: Thu, 03 Nov 2016 17:19:52 GMT
|
|
|
|
Server: Python/3.5 GNS3/2.0.0dev4
|
2016-09-27 15:15:40 +00:00
|
|
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
2016-08-25 12:43:19 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
"interfaces": [
|
|
|
|
{
|
|
|
|
"name": "bridge0",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "en0",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": false,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "en1",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": false,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "en2",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": false,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "fw0",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lo0",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "p2p0",
|
2016-09-27 15:15:40 +00:00
|
|
|
"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,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2016-09-14 13:24:27 +00:00
|
|
|
"name": "vmnet1",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2016-09-14 13:24:27 +00:00
|
|
|
"name": "vmnet10",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2016-09-14 13:24:27 +00:00
|
|
|
"name": "vmnet2",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet3",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet4",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet5",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet6",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet7",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet8",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet9",
|
2016-09-27 15:15:40 +00:00
|
|
|
"special": true,
|
2016-08-25 12:43:19 +00:00
|
|
|
"type": "ethernet"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "test",
|
2016-11-03 17:20:51 +00:00
|
|
|
"node_id": "1609e4ce-3925-4dfa-beb9-a37bb6e4eba8",
|
2016-09-27 15:15:40 +00:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
],
|
2016-08-25 12:43:19 +00:00
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
|
|
"status": "started"
|
|
|
|
}
|