Quick Start

Run polad without a TED and add an explicit-path SR Policy.

This guide shows how to add an explicit-path SR Policy with the TED disabled. Dynamic paths require a Traffic Engineering Database.

You need polad and pola (Installation) and a router that can act as a PCEP client (PCC) for SR-MPLS. For a ready-made lab, see Examples.

1. Write polad.yaml

global:
  pcep:
    address: "192.0.2.254"    # an address of this host that the PCC can reach
    port: 4189
  grpcServer:
    address: "127.0.0.1"
    port: 50051
  log:
    path: "/var/log/pola/"
    name: "polad.log"
  ted:
    enable: false

The ted section is required even when the TED is disabled. log.path must end with /. Every key is described in Configuration.

2. Start polad

polad -f polad.yaml

polad creates the log directory if needed and logs to the file and to standard output. Port 4189 does not require special privileges. Ensure the user running polad can write to the log directory (for example, /var/log/pola/).

3. Connect the PCC

Configure the router to connect to 192.0.2.254 port 4189 as a stateful PCEP client with PCE-initiated LSPs and SR enabled. Then check the session:

pola session

Wait until the state is up and LSP-DB Sync is finished.

4. Add an SR Policy

Write policy.yaml. pcepSessionAddr is the PCC’s source address for its PCEP session. Use segment labels that are valid in your network:

srPolicy:
  pcepSessionAddr: 192.0.2.1
  headend: 192.0.2.1
  endpoint: 192.0.2.4
  name: policy-name
  color: 100
  candidatePath:
    explicit:
      segmentList:
        - sid: 16003
        - sid: 16004

Without a TED, SIDs cannot be validated, so pass --no-sid-validate:

pola sr-policy add -f policy.yaml --no-sid-validate
pola sr-policy list

The policy appears in the list once the PCC reports it. If it does not, see Troubleshooting.

5. Delete the SR Policy

pola sr-policy delete -f policy.yaml

Next steps

Last modified November 20, 2026: docs: modernize documentation site (74dd3de)