2019-03-30 08:56:26 +00:00
|
|
|
curl -i -X PUT 'http://localhost:3080/v2/projects/6d2027c1-ce9b-4db0-855e-e58a13bf5149/links/0677eec3-6872-460a-804b-ccc3525128dc' -d '{"filters": {"frequency_drop": [50], "latency": [10]}, "nodes": [{"adapter_number": 0, "label": {"text": "Hello", "x": 64, "y": 0}, "node_id": "f5d999f4-7e82-4b4d-8495-37e015bd7160", "port_number": 3}, {"adapter_number": 2, "node_id": "692bc02a-c687-4d8d-a94f-f25bea0eaea6", "port_number": 4}]}'
|
2018-01-08 08:26:44 +00:00
|
|
|
|
2019-03-30 08:56:26 +00:00
|
|
|
PUT /v2/projects/6d2027c1-ce9b-4db0-855e-e58a13bf5149/links/0677eec3-6872-460a-804b-ccc3525128dc HTTP/1.1
|
2018-01-08 08:26:44 +00:00
|
|
|
{
|
|
|
|
"filters": {
|
|
|
|
"frequency_drop": [
|
|
|
|
50
|
|
|
|
],
|
|
|
|
"latency": [
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"adapter_number": 0,
|
|
|
|
"label": {
|
|
|
|
"text": "Hello",
|
|
|
|
"x": 64,
|
|
|
|
"y": 0
|
|
|
|
},
|
2019-03-30 08:56:26 +00:00
|
|
|
"node_id": "f5d999f4-7e82-4b4d-8495-37e015bd7160",
|
2018-01-08 08:26:44 +00:00
|
|
|
"port_number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"adapter_number": 2,
|
2019-03-30 08:56:26 +00:00
|
|
|
"node_id": "692bc02a-c687-4d8d-a94f-f25bea0eaea6",
|
2018-01-08 08:26:44 +00:00
|
|
|
"port_number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 201
|
|
|
|
Connection: close
|
|
|
|
Content-Length: 1022
|
|
|
|
Content-Type: application/json
|
2019-03-30 08:56:26 +00:00
|
|
|
Date: Sat, 30 Mar 2019 08:49:50 GMT
|
|
|
|
Server: Python/3.6 GNS3/2.2.0dev8
|
2018-01-08 08:26:44 +00:00
|
|
|
X-Route: /v2/projects/{project_id}/links/{link_id}
|
|
|
|
|
|
|
|
{
|
|
|
|
"capture_file_name": null,
|
|
|
|
"capture_file_path": null,
|
|
|
|
"capturing": false,
|
|
|
|
"filters": {
|
|
|
|
"frequency_drop": [
|
|
|
|
50
|
|
|
|
],
|
|
|
|
"latency": [
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
2019-03-30 08:56:26 +00:00
|
|
|
"link_id": "0677eec3-6872-460a-804b-ccc3525128dc",
|
2018-01-08 08:26:44 +00:00
|
|
|
"link_type": "ethernet",
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"adapter_number": 0,
|
|
|
|
"label": {
|
|
|
|
"text": "Hello",
|
|
|
|
"x": 64,
|
|
|
|
"y": 0
|
|
|
|
},
|
2019-03-30 08:56:26 +00:00
|
|
|
"node_id": "f5d999f4-7e82-4b4d-8495-37e015bd7160",
|
2018-01-08 08:26:44 +00:00
|
|
|
"port_number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"adapter_number": 2,
|
|
|
|
"label": {
|
|
|
|
"rotation": 0,
|
|
|
|
"style": "font-size: 10; font-style: Verdana",
|
|
|
|
"text": "2/4",
|
|
|
|
"x": -10,
|
|
|
|
"y": -10
|
|
|
|
},
|
2019-03-30 08:56:26 +00:00
|
|
|
"node_id": "692bc02a-c687-4d8d-a94f-f25bea0eaea6",
|
2018-01-08 08:26:44 +00:00
|
|
|
"port_number": 4
|
|
|
|
}
|
|
|
|
],
|
2019-03-30 08:56:26 +00:00
|
|
|
"project_id": "6d2027c1-ce9b-4db0-855e-e58a13bf5149",
|
2018-01-08 08:26:44 +00:00
|
|
|
"suspend": false
|
|
|
|
}
|