Skip to main content

Control one native RSVP-TE instance

POST
/tasks/{id}/rsvp/protocol/control

Sends a generation-guarded instance-wide CPF Stop/Start/Abort, restricted ingress RestartDown, or finite head-end local recovery schedule Start/Stop to one named routing agent of a RUNNING task. Abort tears down signaling and discards runtime admin intent; a later Start rearms sessions enabled in the profile loaded by native after old Tears drain. After Abort, Start waits for old Tears, discards any P2P or P2MP MBB controller and rearms configured profile generations. RestartDown selects configured admin-up P2P ingress LSPs without Resv and P2MP head trees with Down leaves. Fully Down trees are torn down and restarted with fresh subgroup IDs; partial trees refresh only subgroups with Down leaves while confirmed siblings keep their labels. Healthy trees are untouched. A completed P2P or P2MP MBB can retry only its active Down generation; an in-flight MBB remains guarded. It returns eligible and teardown-pending counts; P2MP tails and busy partial trees are rejected. Schedule Start requires all five options: number-of-restarts, restart-start-time-ms, restart-up-time-ms, restart-ms and recovery-ms; Stop takes no options. HTTP 202 acknowledges scheduling, not completed recovery. A transport error leaves the outcome unknown; query current protocol state before retrying. A separate /protocol/sessions/control route selects profile-indexed instances; this single-instance route does not accept SessionIndices or claim identical internal CPF states or restart timing.

Contract

Parameter
Value
Sectiontasks
AuthenticationCookieAuth
Consumesapplication/json
Producesapplication/json

Parameters

2 parameters

Name
Location
Required
Type
Description
idpathyesintegerCanonical positive task ID
requestbodyyesobjectAgent, instance, runtime generation, action and required schedule options
  • {
      "action": "stop",
      "agent": "<string>",
      "instance": 0,
      "options": {
        "number-of-restarts": 0,
        "recovery-ms": 0,
        "restart-ms": 0,
        "restart-start-time-ms": 0,
        "restart-up-time-ms": 0
      },
      "runtime-generation": "<string>"
    }

Responses

10 responses

Status
Description
Type
200
OKobject
202
Recovery schedule acceptedobject
400
Invalid requestobject
401
Session requiredobject
403
Agent not registered for this task or license deniedobject
404
Task or RSVP instance not foundobject
409
Task, generation or native state conflictobject
500
Task lookup failedobject
502
Agent transport or response contract error; query before retryingobject
504
Agent request deadline exceeded; query before retryingobject
  • {
      "action": "<string>",
      "completed": 0,
      "cpf-state": "<string>",
      "eligible": 0,
      "instance": 0,
      "last-error": "<string>",
      "runtime-generation": "<string>",
      "schedule-state": "<string>",
      "started": 0,
      "target": 0,
      "task-id": 0,
      "teardown-pending": 0
    }
  • {
      "action": "<string>",
      "completed": 0,
      "cpf-state": "<string>",
      "eligible": 0,
      "instance": 0,
      "last-error": "<string>",
      "runtime-generation": "<string>",
      "schedule-state": "<string>",
      "started": 0,
      "target": 0,
      "task-id": 0,
      "teardown-pending": 0
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }