Network-wide programming with PCEP
This recipe will guide you through the instructions to create, update, and delete label switched paths for draft-ietf-pce-segment-routing-01
. This draft refers to the PCEP extension for performing segment routing and extends the two drafts in the preceding recipe: draft-ietf-pce-stateful-pce-07
and draft-ietf-pce-pce-initiated-lsp-00
.
Getting ready
The ingredients of this recipe require a running instance of the pcc-mock
test tool as described in the previous recipe.
How to do it...
PCEP implementation provides the following remote procedure calls to manage segment routing LSPs:
- To create a segment routing LSP
add-lsp
RPC; the given sample JSON input can be used.
URI: http://<ODL_IP>:8181/restconf/operations/network-topology-pcep:add-lsp
Method: POST
Content Type: application
/xml
A sample input body:
<input xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep"> <node>pcc://192.168.1.208</node> <name>tunnel-0</name> <arguments...