2018-06-07 08:26:06 +00:00
|
|
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d964862d-8fa4-4d41-8b95-539c987d5828' -d '{"name": "test"}'
|
2018-01-08 08:26:44 +00:00
|
|
|
|
2018-06-07 08:26:06 +00:00
|
|
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d964862d-8fa4-4d41-8b95-539c987d5828 HTTP/1.1
|
2018-01-08 08:26:44 +00:00
|
|
|
{
|
|
|
|
"name": "test"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
|
|
|
Connection: close
|
2018-06-07 08:26:06 +00:00
|
|
|
Content-Length: 2923
|
2018-01-08 08:26:44 +00:00
|
|
|
Content-Type: application/json
|
2018-06-07 08:26:06 +00:00
|
|
|
Date: Thu, 07 Jun 2018 08:13:18 GMT
|
|
|
|
Server: Python/3.6 GNS3/2.1.7dev1
|
2018-01-08 08:26:44 +00:00
|
|
|
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"
|
2018-06-07 08:26:06 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet1",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet10",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet11",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet12",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet13",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet14",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet15",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet16",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet17",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet18",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet19",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "vmnet8",
|
|
|
|
"special": true,
|
|
|
|
"type": "ethernet"
|
2018-01-08 08:26:44 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "test",
|
2018-06-07 08:26:06 +00:00
|
|
|
"node_directory": "/private/var/folders/qy/g6blgc5n7y93pzg61zyt7cmr0000gn/T/pytest-of-behlers/pytest-0/test_json4/project-files/builtin/d964862d-8fa4-4d41-8b95-539c987d5828",
|
|
|
|
"node_id": "d964862d-8fa4-4d41-8b95-539c987d5828",
|
2018-01-08 08:26:44 +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"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
|
|
"status": "started"
|
|
|
|
}
|