Start scheduled BGP neighbor moves
POST
/tasks/routing/move/schedule/start/{id}The first move from → to runs immediately, then every interval_sec seconds the router moves back (to → from, from → to, and so on). The next move starts no earlier than the previous one has been measured. Fields as for a single move plus interval_sec (at least 10). The schedule stops with the stop command or when the task ends.
Contract
Parameter | Value |
|---|---|
| Section | tasks |
| Authentication | CookieAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
2 parameters
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| id | path | yes | integer | Task ID |
| request | body | yes | object | from, to, from_interface, to_interface, measure_timeout_sec, interval_sec |
{}
Responses
5 responses
Status | Description | Type |
|---|---|---|
200 | Response: {status: started, interval_sec} | object |
400 | Invalid request body or interval_sec is less than 10 | object |
401 | Unauthorized | object |
409 | The schedule is already running or a single move is in progress | object |
500 | Task is not running | object |
{}{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }