This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Reference

CLI commands, daemon configuration, gRPC API, and supported standards.

1 - pola

Global flags, commands, exit status, and shell completion of the pola command.

pola is the command-line client for polad’s gRPC API. See Installation for installation instructions.

pola [global flags] <command> [arguments]
pola --version

Global flags

FlagDefaultDescription
--host127.0.0.1polad gRPC address.
-p, --port50051polad gRPC port.
-j, --jsonfalsePrint JSON instead of text.
--versionPrint pola <version> and exit. Recognized only as the first argument. Release binaries and container images print the release version; binaries built with go install or make build print dev.

The connection uses plaintext gRPC. pola has no configuration file or Pola-specific environment variables. If polad uses a gRPC port other than 50051 (for example, because GoBGP uses that port), pass -p.

The gRPC library honors the standard proxy environment variables HTTPS_PROXY, https_proxy, NO_PROXY, and no_proxy. If HTTPS_PROXY or https_proxy is set, pola connects through the proxy (HTTP CONNECT) unless --host is a loopback address or is listed in NO_PROXY or no_proxy. Add the polad address to NO_PROXY or no_proxy to connect directly. The gRPC library also reads GRPC_GO_LOG_SEVERITY_LEVEL, GRPC_GO_LOG_VERBOSITY_LEVEL, and GRPC_GO_LOG_FORMATTER for its own logging.

JSON output is a single line. Pipe it through jq to format it like the examples.

Commands

CommandDescription
pola session [peer-address] [detail]Show PCEP sessions.
pola session delete <peer-address>Close a PCEP session. Alias: del.
pola sr-policy list [--peer <address>]List SR Policies per session.
pola sr-policy add -f <file> [--no-sid-validate]Create or update an SR Policy.
pola sr-policy delete -f <file>Delete an SR Policy.
pola tedShow the TED.
pola completion <shell>Generate a shell completion script.

pola <command> --help shows the flags of each command. pola without arguments prints the help.

Exit status

pola exits with 0 on success and 1 on any error, including an unknown command or flag and a failed connection to polad. Errors are printed to standard error as Error: <message>. Most commands then print their usage to standard output, but some, such as pola session delete, do not. An unknown command instead prints Run 'pola --help' for usage.

Shell completion

pola completion bash|zsh|fish|powershell

This command prints a completion script.

# Bash (Linux)
pola completion bash > /etc/bash_completion.d/pola
# Zsh
pola completion zsh > "${fpath[1]}/_pola"
# Fish
pola completion fish > ~/.config/fish/completions/pola.fish

Start a new shell afterwards. pola completion <shell> --help shows the instructions for other platforms.

1.1 - pola session

Show and close PCEP sessions.

The global flags apply to every command.

Show sessions

pola session [peer-address] [detail]

Shows PCEP sessions sorted by peer address, including their state, timers, and capabilities. Specify peer-address to show one peer. Add detail to include the session creation time, initiator, and message counters (Session Creation, Initiator, and Stats).

With no sessions, the command prints No PCEP sessions connected. If the specified peer has no session, it prints No PCEP session for <address>. With -j, both cases print [].

Example of pola session 192.0.2.1 detail:

Session #0: 192.0.2.1
  State:             up
  LSP-DB Sync:       finished
  Role:              active-stateful-pce
  Up Time:           00:12:22
  Session ID:        Local=1, Peer=7
  Transport:         tcp, auth=none
  Timers:
               Local  Peer  Effective
    Keepalive  30     10    30
    DeadTimer  120    40    40
  Capabilities:
    Common:
      STATEFUL-PCE-CAPABILITY [RFC8231/8281]: Stateful, Update, Instantiation
      SR-PCE-CAPABILITY [RFC8664]: SR
      PATH-SETUP-TYPE-CAPABILITY [RFC8408]: SR-TE
      ASSOC-TYPE-LIST [RFC8697]:
        SR Policy Association (0x0006) [RFC9862]
    Local only:
      STATEFUL-PCE-CAPABILITY [RFC8231/8281]: Color
      SR-PCE-CAPABILITY [RFC8664]: Unlimited-SID-Depth
      SRv6-PCE-CAPABILITY [RFC9603]: SRv6
      PATH-SETUP-TYPE-CAPABILITY [RFC8408]: SRv6-TE
      MULTIPATH-CAP [draft-ietf-pce-multipath]: Multipath, MaxMultipaths=1
      Unrecognized TLVs:
        type=71: SRPOLICY-CAPABILITY (RFC9862)
    Peer only:
      SR-PCE-CAPABILITY [RFC8664]: MSD=10
      Unrecognized TLVs:
        type=73: SR-P2MP-POLICY-CAPABILITY (draft-ietf-pce-sr-p2mp-policy-11) [sub-TLV of PATH-SETUP-TYPE-CAPABILITY]
  Session Creation:  2026-08-19T09:30:05Z
  Initiator:         remote
  Stats:
               Sent  Rcvd
    Open       1     1
    Keepalive  25    74
    Close      0     0
    PCErr      0     0
    PCNtf      0     0
    PCReq      0     0
    PCRep      0     0
    Report     0     3
    Update     1     0
    Initiate   1     0
    Unrecognized Rcvd: 0
    Corrupt Rcvd:      0
    Session Setup:     ok=1, fail=0
  • State is tcp-pending, open-wait, keep-wait, or up. LSP-DB Sync is pending, ongoing, or finished.
  • Timers: Local and Peer are the values advertised by Pola and the PCC, respectively. Effective is the Keepalive interval Pola uses and the DeadTimer value after which it gives up on the peer; it is shown only for up sessions (- otherwise). disabled means 0.
  • Capabilities compares the capabilities advertised in the two Open messages. Common lists those advertised by both sides. TLVs without a typed representation in the gRPC API appear under Unrecognized TLVs. This includes SRPOLICY-CAPABILITY (type 71). [sub-TLV of PATH-SETUP-TYPE-CAPABILITY] identifies a TLV carried inside PATH-SETUP-TYPE-CAPABILITY.
  • Stats are the message counters defined in RFC 9826, with Open and Close added by Pola. Session Setup counts establishment attempts from this peer and persists across reconnections.

The same session with -j:

[
  {
    "peerAddress": "192.0.2.1",
    "state": "up",
    "lspDbSync": "finished",
    "upTime": "00:12:22",
    "role": "active-stateful-pce",
    "sessionId": { "local": 1, "peer": 7 },
    "timers": {
      "keepalive": { "local": 30, "peer": 10, "effective": 30 },
      "deadTimer": { "local": 120, "peer": 40, "effective": 40 }
    },
    "transport": { "protocol": "tcp", "auth": "none" },
    "capabilities": {
      "common": {
        "stateful": true,
        "update": true,
        "instantiation": true,
        "pathSetupTypes": ["SR-TE"],
        "associationTypes": [6],
        "unrecognizedTlvTypes": [],
        "capabilities": [
          { "capability": "STATEFUL", "items": ["Stateful", "Update", "Instantiation"] },
          { "capability": "SR", "items": ["SR"] },
          { "capability": "PATH_SETUP_TYPE", "items": ["SR-TE"] },
          { "capability": "ASSOC_TYPE_LIST", "items": ["SR Policy Association (0x0006) [RFC9862]"] }
        ],
        "other": [{ "capability": "SR", "items": ["SR"] }]
      },
      "localOnly": [
        { "capability": "STATEFUL", "items": ["Color"] },
        { "capability": "SR", "items": ["Unlimited-SID-Depth"] },
        { "capability": "SRV6", "items": ["SRv6"] },
        { "capability": "PATH_SETUP_TYPE", "items": ["SRv6-TE"] },
        { "capability": "MULTIPATH", "items": ["Multipath", "MaxMultipaths=1"] },
        { "capability": "UNKNOWN", "items": ["type=71: SRPOLICY-CAPABILITY (RFC9862)"] }
      ],
      "peerOnly": [
        { "capability": "SR", "items": ["MSD=10"] },
        {
          "capability": "UNKNOWN",
          "items": ["type=73: SR-P2MP-POLICY-CAPABILITY (draft-ietf-pce-sr-p2mp-policy-11) [sub-TLV of PATH-SETUP-TYPE-CAPABILITY]"]
        }
      ]
    },
    "sessionCreation": "2026-08-19T09:30:05Z",
    "initiator": "remote",
    "stats": {
      "open": { "sent": 1, "rcvd": 1 },
      "keepalive": { "sent": 25, "rcvd": 74 },
      "close": { "sent": 0, "rcvd": 0 },
      "pcerr": { "sent": 0, "rcvd": 0 },
      "pcntf": { "sent": 0, "rcvd": 0 },
      "pcreq": { "sent": 0, "rcvd": 0 },
      "pcrep": { "sent": 0, "rcvd": 0 },
      "report": { "sent": 0, "rcvd": 3 },
      "update": { "sent": 1, "rcvd": 0 },
      "initiate": { "sent": 1, "rcvd": 0 },
      "unrecognizedRcvd": 0,
      "corruptRcvd": 0,
      "sessionSetup": { "ok": 1, "fail": 0 }
    }
  }
]

In capabilities.common:

  • capabilities lists all common capabilities, grouped by TLV.
  • stateful, update, instantiation, pathSetupTypes, associationTypes, and unrecognizedTlvTypes provide typed views of the same data.
  • other lists common capabilities without a typed field. These may also appear in capabilities, as shown by SR in the example.

Close a session

pola session delete <peer-address>

Sends Close to the session and removes it. Prints success!, or {"status":"success"} with -j. The PCC usually reconnects according to its own timers.

1.2 - pola sr-policy

List, create, update, and delete SR Policies.

The global flags apply to every command.

List

pola sr-policy list [--peer <address>]

Lists the LSPs reported by each session, grouped by session and sorted by peer address. Use --peer to show one session.

Session: 192.0.2.2 (State: up, LSP-DB Sync: finished)
  PolicyName: sample_policy1
    PlspID: 1
    LSPID: 1
    State: up
    Type: explicit
    Headend: 192.0.2.2 (0000.0aff.0002)
    Endpoint: 192.0.2.1 (0000.0aff.0001)
    Color: 999
    Preference: 100
    SegmentList: 16003 -> 16001

Session: 2001:db8::1 (State: keep-wait, LSP-DB Sync: pending)
  No SR Policies: session is not established.

With no sessions, or no session matching --peer, the command prints the same messages as pola session. With -j, it prints [] in either case. A session with no policies shows one of these messages:

  • No SR Policies. when LSP-DB synchronization has finished.
  • No SR Policies: session is not established. when the session is not up.
  • No SR Policies: session is still synchronizing. while the session is up but synchronization is not finished.

Router IDs in parentheses are resolved from the TED when it is enabled.

A dynamic policy that Pola created shows Type: dynamic, its Metric, and the UnderlayFamily and DataPlane used, whether specified in the request or inferred by Pola.

With -j:

[
  {
    "peerAddress": "192.0.2.2",
    "state": "up",
    "lspDbSync": "finished",
    "srPolicies": [
      {
        "headend": "192.0.2.2",
        "endpoint": "192.0.2.1",
        "color": 999,
        "policyName": "sample_policy1",
        "headendRouterId": "0000.0aff.0002",
        "endpointRouterId": "0000.0aff.0001",
        "segmentList": [{ "sid": 16003 }, { "sid": 16001 }],
        "candidatePath": {
          "preference": 100,
          "explicit": { "segmentList": [{ "sid": 16003 }, { "sid": 16001 }] }
        },
        "plspId": 1,
        "lspId": 1,
        "state": "up"
      }
    ]
  },
  {
    "peerAddress": "2001:db8::1",
    "state": "keep-wait",
    "lspDbSync": "pending",
    "srPolicies": []
  }
]
  • segmentList is the segment list currently signaled. For an explicit candidate path, candidatePath.explicit.segmentList repeats it.
  • A dynamic candidate path appears as candidatePath.dynamic, with metric, plane (family, dataPlane), and optional waypoints. The text output’s UnderlayFamily and DataPlane correspond to plane.family and plane.dataPlane.
  • plspId, lspId, and the router IDs are omitted when they are zero or unknown. state is omitted when unspecified; otherwise, it is down, up, or active based on the LSP object’s O flag, or unknown for other values.
  • Color shows the PCC-reported value, or - in text output (omitted from JSON) if unavailable. A reported 0 is shown as 0.
  • Preference shows the PCC-reported value, or - in text output (omitted from JSON) if unavailable. An absent preference TLV in an SR Policy Association defaults to 100 (RFC 9862 Section 4.5.4).
  • A policy appears after the PCC first reports it.

Add

pola sr-policy add -f <file> [--no-sid-validate]

Creates an SR Policy, or updates the segment list of the existing policy on the same session with the same color and endpoint. The policy name is not part of the match. The file format is described in SR Policies, Explicit Paths, and Dynamic Paths.

--no-sid-validate skips SID validation of explicit paths and prints warning: skipping SID validation (--no-sid-validate) to standard error.

Prints success!, or {"status":"success"} with -j, once polad has sent the PCEP message. On failure, it prints the server’s message and, for common errors, a hint; see Troubleshooting.

Delete

pola sr-policy delete -f <file>

The file must contain srPolicy.pcepSessionAddr, endpoint, color, and name:

srPolicy:
  pcepSessionAddr: 192.0.2.1
  endpoint: 192.0.2.4
  color: 100
  name: policy-name

name is required in the file but is not used for matching: the LSP is matched by session, color, and endpoint. See Deleting. Prints success!, or {"status":"success"} with -j, once the PCEP message is sent.

1.3 - pola ted

Show the Traffic Engineering Database.

The global flags apply to every command.

Show the TED

pola ted

Shows the TED sorted by router ID. Prints TED is empty if no topology has been received.

If the TED is disabled, the command fails with TED is disabled by polad.

Node #0: 0000.0aff.0001
  Hostname: host1
  ISIS Area ID: 49.0000
  SRGB: 16000 - 24000
  Prefixes:
    10.0.0.0/30
    10.255.0.1/32
      index: 1
  Links:
    Local: 10.0.0.1, 2001:db8::1 (interface 5) Remote: 10.0.0.2, 2001:db8::2 (interface 6)
      RemoteRouterID: 0000.0aff.0002
      Metrics:
        igp: 10
      Adj-SIDs:
        unspecified: 17
      SRv6 End.X SID:
        EndpointBehavior: ENDX, Flags: 0, Algorithm: 0, Weight: 0
        SIDs: [2001:db8:1::1]
        SID Structure: Block: 32, Node: 16, Func: 16, Arg: 0
  SRv6 SIDs:
    SIDs: [2001:db8:1::]
    Block: 32, Node: 16, Func: 16, Arg: 0
    EndpointBehavior: END, Flags: 0, Algorithm: 0
    MultiTopoIDs: []

Node #1: 0000.0aff.0002
  Hostname: host2
  ISIS Area ID: 49.0000
  SRGB: 16000 - 24000
  Prefixes:
    10.0.0.0/30
    10.255.0.2/32
      index: 2
  Links:
  SRv6 SIDs:

With -j, the command outputs the TED as a JSON array of nodes:

[
  {
    "asn": 65000,
    "routerId": "0000.0aff.0001",
    "hostname": "host1",
    "isisAreaId": "49.0000",
    "srgb": { "begin": 16000, "end": 24000 },
    "srAlgorithms": [0, 1],
    "prefixes": [
      { "prefix": "10.0.0.0/30" },
      { "prefix": "10.255.0.1/32", "sids": [{ "algorithm": 0, "index": 1 }] }
    ],
    "links": [
      {
        "local": { "routerId": "0000.0aff.0001", "ipv4": "10.0.0.1", "ipv6": "2001:db8::1", "interfaceId": 5 },
        "remote": { "routerId": "0000.0aff.0002", "ipv4": "10.0.0.2", "ipv6": "2001:db8::2", "interfaceId": 6 },
        "metrics": [{ "type": "igp", "value": 10 }],
        "adjSids": [{ "family": "unspecified", "sid": 17 }],
        "srv6EndXSids": [
          {
            "endpointBehavior": { "behavior": 5, "name": "ENDX", "flags": 0, "algorithm": 0 },
            "weight": 0,
            "sids": ["2001:db8:1::1"],
            "sidStructure": { "localBlock": 32, "localNode": 16, "localFunc": 16, "localArg": 0 }
          }
        ]
      }
    ],
    "srv6Sids": [
      {
        "sids": ["2001:db8:1::"],
        "endpointBehavior": { "behavior": 1, "name": "END", "flags": 0, "algorithm": 0 },
        "sidStructure": { "localBlock": 32, "localNode": 16, "localFunc": 16, "localArg": 0 },
        "multiTopoIds": null
      }
    ]
  },
  {
    "asn": 65000,
    "routerId": "0000.0aff.0002",
    "hostname": "host2",
    "isisAreaId": "49.0000",
    "srgb": { "begin": 16000, "end": 24000 },
    "prefixes": [
      { "prefix": "10.0.0.0/30" },
      { "prefix": "10.255.0.2/32", "sids": [{ "algorithm": 0, "index": 2 }] }
    ],
    "links": [],
    "srv6Sids": []
  }
]
  • links[].local and links[].remote contain advertised ipv4 and ipv6 addresses, routerId when known, and interfaceId when the link identifiers are advertised.
  • adjSids[].family is derived from the IS-IS F flag or, for OSPFv2 and OSPFv3, from the protocol when available. Otherwise, it is unspecified.
  • endpointBehavior.flags is the raw flags octet from the advertisement. weight is the End.X SID load-balancing weight.
  • srAlgorithms lists the algorithms from the node’s SR-Algorithm TLV as a JSON array of numbers (for example, [0, 1]). It is omitted if the node does not advertise the TLV.
  • prefixes[].sids lists Prefix-SIDs by algorithm as { "algorithm", "index" }. It is omitted if the prefix has no Prefix-SID.

2 - polad

Command line, signals, logging, and exit status of the polad daemon.

polad is the PCE daemon. It reads its configuration file, accepts PCEP sessions, and serves the gRPC API. See Installation to install it.

polad [-f <file>]
polad --version
OptionDefaultDescription
-fpolad.yamlConfiguration file. A relative path is resolved against the working directory.
--versionPrint polad <version> and exit. Recognized only as the first argument. Release binaries and container images print the release version; binaries built with go install or make build print dev.
-hPrint the usage to standard error and exit with 1.

The application settings of polad are defined in its configuration file.

Environment variables

polad defines no application-specific environment variables. Its GoBGP gRPC client (gobgp.grpcClient) honors the standard proxy variables HTTPS_PROXY, https_proxy, NO_PROXY, and no_proxy.

If HTTPS_PROXY is set, connections to non-loopback GoBGP addresses use the proxy (HTTP CONNECT) unless the GoBGP host matches an entry in NO_PROXY. To bypass the proxy, add the GoBGP hostname, IP address, or CIDR range to NO_PROXY. Loopback addresses, such as 127.0.0.1 and localhost, are never proxied.

The gRPC library also reads GRPC_GO_LOG_SEVERITY_LEVEL, GRPC_GO_LOG_VERBOSITY_LEVEL, and GRPC_GO_LOG_FORMATTER to configure its own logging.

Running

polad writes logs to the log file and to standard output. On SIGINT or SIGTERM it sends Close to every PCEP session and exits with 0.

Exit status

StatusMeaning
0--version printed the version, or polad was stopped by SIGINT or SIGTERM.
1-h printed the usage, an invalid command line, unreadable or invalid configuration file, or a server that failed to start or run. The reason is printed to standard error.

2.1 - Configuration

Every polad.yaml key, default, and validation rule.

polad reads this file at startup. See polad for command-line options.

Example

global:
  pcep:
    address: "192.0.2.254"
    port: 4189
  grpcServer:
    address: "127.0.0.1"
    port: 50052
  log:
    path: "/var/log/pola/"
    name: "polad.log"
    level: "info"
  ted:
    enable: true
    source: "gobgp"
    asn: 65000
  gobgp:
    grpcClient:
      address: "127.0.0.1"
      port: 50051
  usidMode: false

GoBGP listens on port 50051 by default, and pola connects to that port by default. This example puts polad’s gRPC server on 50052 instead, so run pola -p 50052.

Keys

All keys are under global. Unknown keys are rejected.

KeyRequiredDefaultDescription
pcep.addressyesPCEP listen address. A literal IPv4 or IPv6 address; hostnames are not resolved.
pcep.portyesPCEP listen port. The standard port is 4189.
pcep.keepaliveno30Keepalive in seconds (0-255) advertised in Pola’s Open.
pcep.deadTimerno4 × keepalive, capped at 255DeadTimer in seconds (0-255) advertised in Pola’s Open. Set it to 0 if keepalive is 255.
pcep.minKeepalivenono lower boundLowest Keepalive accepted from a peer (0-255).
pcep.maxKeepalivenono upper boundHighest Keepalive accepted from a peer (0-255).
pcep.allowNegotiationnotruePropose acceptable timers to a peer instead of rejecting its Open.
grpcServer.addressyesgRPC API listen address. A literal IPv4 or IPv6 address; hostnames are not resolved.
grpcServer.portyesgRPC API listen port.
log.pathyesLog directory, created with mode 0750 if missing. Prepended to name as is; include a trailing /.
log.nameyesLog file name. Opened for appending; its mode is set to 0600, even for an existing file.
log.levelnoinfodebug, info, warn, or error (lowercase).
tedyesTED section. Required even when the TED is disabled.
ted.enablenofalseBuild a TED from BGP-LS.
ted.sourcewhen enabledTED source. Only gobgp is supported.
ted.asnwhen enabledAS number of the topology; non-zero.
gobgp.grpcClient.addresswhen source is gobgpGoBGP gRPC API address.
gobgp.grpcClient.portwhen source is gobgpGoBGP gRPC API port.
usidModenofalseTreat SRv6 SIDs in explicit segment lists as uSID. See SRv6.

All port values can be written as numbers or strings.

Timer behavior is described in PCEP Sessions, and the TED in Traffic Engineering Database.

Validation

polad checks the file at startup and exits on the first stage that fails.

Read errors

If the file cannot be opened or parsed, the error begins with failed to read config file:. Examples: a missing file, invalid YAML, or an unknown key.

Validation errors

Violations of these rules are reported together in one error beginning with invalid config file:. Timer rules apply after defaults are filled in.

  • Every key marked yes under Required is present; string values are non-empty.
  • log.level is debug, info, warn, or error.
  • If ted.enable is true, ted.source is gobgp, ted.asn is non-zero, and gobgp.grpcClient.address and port are set. Otherwise, these keys are not checked.
  • If keepalive is 0, deadTimer is 0.
  • If keepalive is non-zero, deadTimer is 0 or greater than keepalive.
  • minKeepalive is not greater than maxKeepalive.

Startup errors

A listen address that is not a literal IP address causes an error when its listener starts.

JSON Schema

polad_config.json provides editor completion and catches most single-key errors. Rules that span keys, such as the timer rules, are checked only by polad.

Security

  • The gRPC API has no TLS and no authentication: anyone who can reach it can create and delete SR Policies. Bind it to loopback or a trusted management network.
  • The PCEP listener has no TLS, TCP-MD5, or TCP-AO, and accepts any PCC that connects. Restrict access with network controls.
  • The connection to GoBGP is plaintext gRPC.

3 - gRPC API

The PCEService gRPC API served by polad, its semantics, and its errors.

polad serves api.pola.v1.PCEService on global.grpcServer. See api/pola/v1/pola.proto for message and field definitions, pkg.go.dev for generated Go code, and the Go client example.

The API uses plaintext gRPC with no authentication. Expose it only on loopback or a trusted network.

RPCs

RPCDescription
CreateSRPolicySend PCUpd to a matching LSP if one exists; otherwise create the SR Policy with PCInitiate.
DeleteSRPolicyDelete a matching LSP with a PCInitiate carrying the R flag. Requires peer_addr, color, endpoint, and policy_name.
GetSessionListList PCEP sessions with state, timers, and capabilities. Message counters are included when include_stats is set.
GetSRPolicyListList the LSPs reported by each session.
GetTEDReturn the TED. When disabled, enabled is false. When enabled, the node list is empty until initial synchronization completes.
DeleteSessionSend a Close message to a PCEP session and remove it.

CreateSRPolicyRequest fields correspond to the CLI policy file, with the addition of no_sid_validate.

Semantics

  • CreateSRPolicy and DeleteSRPolicy return when the PCEP message is sent, not when the PCC processes it. Subsequent PCErr messages are not returned to the caller and are logged at debug level. Poll GetSRPolicyList to verify the result.
  • Both require the session to be up and LSP-DB synchronization to be complete.
  • An LSP matches by session, color, and endpoint. policy_name is not compared; it is used only as the symbolic name in the PCEP message. If multiple LSPs match, the selection is unspecified.
  • CreateSRPolicy resolves and validates the request against the current TED before looking up the session, so TED errors are reported before PCEP_SESSION_NOT_FOUND.
  • asn is required for the router-ID form and dynamic paths. For dynamic paths, it must match the TED’s AS number. endpoint_family is valid only for the router-ID form.
  • usidMode in polad.yaml applies to SRv6 segments in explicit segment lists; see SRv6.
  • LSP state is held in memory and is not persisted across polad restarts.
  • For v1 compatibility, SID-absent SR-MPLS segments use sid "0", and requests with sid_absent but no data_plane are treated as SR-MPLS. v2 will remove this compatibility behavior: sid must be empty and data_plane must be explicit.
  • DynamicPath.algorithm selects the IGP algorithm: 0 (default SPF) or 128-255 (Flexible Algorithms, RFC 9350). A Flex-Algo request must not set metric. LsNode.sr_algorithms and LsNode.flex_algo_defs expose the Flex-Algo information learned from BGP-LS, and LsLink.asla and LsLink.asla_malformed expose the application-specific link attributes. Optional ASLA metric fields (te_metric, delay, min_delay) distinguish an advertised 0 from an absent metric.

Errors

Failures are gRPC status errors with an ErrorInfo detail whose domain is pola and whose reason is one of:

gRPC codeReasons
InvalidArgumentINVALID_REQUEST
FailedPreconditionTED_DISABLED, TED_NOT_SYNCED, TED_DATA_INCOMPLETE, DESTINATION_UNREACHABLE, METRIC_NOT_CARRIED, PCEP_SESSION_NOT_SYNCED, SID_VALIDATION_FAILED, FLEX_ALGO_DEFINITION_NOT_FOUND, FLEX_ALGO_UNSUPPORTED, FLEX_ALGO_NOT_PARTICIPATING
NotFoundPCEP_SESSION_NOT_FOUND, SR_POLICY_NOT_FOUND
InternalPCEP_REQUEST_FAILED, PATH_COMPUTATION_FAILED

Troubleshooting lists typical causes for each reason.

To change the API, see Changing the gRPC API.

4 - Standards and Feature Support

The specifications Pola implements, and what it does not support.

Implemented specifications

Unsupported features are listed in Not supported.

AreaSpecificationFeatures
PCEPRFC 5440Session establishment, Keepalive, PCErr, and Close.
Stateful PCERFC 8231, RFC 8281State synchronization, PCRpt, PCUpd, and PCE-initiated LSPs.
Path setup typesRFC 8408PATH-SETUP-TYPE-CAPABILITY and PATH-SETUP-TYPE TLVs.
SR-MPLSRFC 8664SR-ERO and SR-PCE-CAPABILITY, including MSD.
SRv6RFC 9603SRv6-ERO and SRv6-PCE-CAPABILITY, including SID structure.
SR PolicyRFC 9256Policy identity (headend, color, endpoint) and candidate path preference.
AssociationsRFC 8697ASSOCIATION object and ASSOC-TYPE-LIST TLV.
SR Policy AssociationRFC 9862SR Policy Association and its TLVs, SRPOLICY-CAPABILITY, and validation of received associations. See SR Policy Association validation.
ColorRFC 9863Color capability and receiving the COLOR TLV. See COLOR TLV.
Vendor informationRFC 7470VENDOR-INFORMATION object with Cisco-specific color and preference.
BGP-LSRFC 9552, RFC 9085, RFC 9514TED ingestion through GoBGP, including SR-MPLS and SRv6 extensions.
Flexible AlgorithmRFC 9350, RFC 9351Path computation over a Flexible Algorithm: FAD ingestion and election, node participation, and ASLA-based affinity/SRLG link constraints. See Flexible Algorithm (Flex-Algo).
Link delayRFC 8570Min Unidirectional Link Delay as a path computation metric (min-delay), including as a Flex-Algo Metric-Type.
Administrative groupsRFC 3630, RFC 5305, RFC 9104Legacy and extended administrative groups, exposed in the TED.
Application-specific link attributesRFC 9294, RFC 8919, RFC 8920ASLA affinity, SRLG, TE metric, delay, and min-delay. Flex-Algo selection rules are described in Flexible Algorithm (Flex-Algo).
SRv6 behaviorsRFC 8986, RFC 9800Endpoint behavior codes, including NEXT-CSID (uN, uA).

Additional details

  • Pola advertises MULTIPATH-CAP (draft-ietf-pce-multipath) with a maximum of one path.
  • The session and message counters shown by pola session detail follow the definitions in the PCEP YANG modules (RFC 9826).
  • The acceptable Keepalive range corresponds to the minimum and maximum Keepalive parameters in those modules and in the PCEP MIB (RFC 7420).
  • The PCEP library also decodes additional code points so that pola session detail can show peer-advertised capabilities. This does not imply feature support.

What Pola sends

MessageContents
OpenSTATEFUL-PCE-CAPABILITY (U, I, and color flags), PATH-SETUP-TYPE-CAPABILITY (SR-MPLS and SRv6) with its SR-PCE-CAPABILITY and SRv6-PCE-CAPABILITY sub-TLVs, ASSOC-TYPE-LIST (SR Policy Association), SRPOLICY-CAPABILITY, and MULTIPATH-CAP.
PCInitiate (create)SRP; LSP with SYMBOLIC-PATH-NAME; ENDPOINTS; SR-ERO or SRv6-ERO; and the color and preference encoding described in Legacy Cisco and Juniper PCCs.
PCInitiate (delete)SRP with the R flag; LSP with SYMBOLIC-PATH-NAME.
PCUpdSRP; LSP with the D flag and SYMBOLIC-PATH-NAME; and ERO.

Pola uses the SR Policy Association when both peers advertise the SR Policy Association type in ASSOC-TYPE-LIST and both advertise SRPOLICY-CAPABILITY (RFC 9862 Sections 4 and 5.1). For interoperability with Junos 25.2R1.9, Pola also sends it when both peers advertise the association type but the PCC omits SRPOLICY-CAPABILITY, unless the PCC advertises a legacy Cisco or Juniper association type. RFC 9862 Section 5.1 does not permit this fallback, and a PCC that enforces it may close the session.

When using the RFC 9862 encoding, Pola also sends the Cisco-specific VENDOR-INFORMATION object. Otherwise, it uses the vendor-specific encoding described in Legacy Cisco and Juniper PCCs.

Pola does not send BANDWIDTH, METRIC, LSPA, SRPOLICY-POL-NAME, or SRPOLICY-CPATH-NAME.

COLOR TLV

Pola advertises both color and SR Policy Association capabilities and sets up only SR Paths, so it does not send the COLOR TLV (RFC 9863 Section 2).

Pola still advertises color capability. It reads the COLOR TLV in PCRpt only if the PCC advertised color capability and Pola does not use the legacy Cisco encoding for the PCC. If a PCRpt carries an SR Policy Association, the COLOR TLV is ignored and the color comes from the association (RFC 9863 Section 2). For vendor associations, Pola uses the association color when present and falls back to the COLOR TLV otherwise. RFC 9863 Section 3.2 permits a COLOR TLV value of 0. If no color is reported, the color is unset.

Impact on PCCs:

  • Legacy Cisco and legacy Juniper PCCs receive color through their vendor-specific encodings.
  • A PCC that does not list the SR Policy Association type in ASSOC-TYPE-LIST receives no color through a standard PCEP mechanism.

SR Policy Association validation

Pola validates PCRpt messages, including those sent during state synchronization. The SRPOLICY-CAPABILITY check also applies to the end-of-synchronization marker (PLSP-ID 0) and removal reports (R flag) that carry an SR Policy Association. For these reports, the other checks are skipped, and a removal report releases only the identifiers held for that LSP. For other reports, the checks below apply to the reported LSP. The multiple-association check applies to any such report that carries an SR Policy Association.

When a check fails, Pola sends the PCErr below and does not process that report. The session stays up unless the table specifies Close.

ConditionPCErr
An SR Policy Association is received when either peer has not advertised SRPOLICY-CAPABILITY (RFC 9862 Section 5.1), except for the interoperability fallback described above.(10, 44), then Close
A PCC-originated SR Policy LSP has no SR Policy Association on a session where Pola uses the RFC 9862 encoding (RFC 9862 Section 4).(6, 22)
The report carries SR Policy Associations for more than one association group (RFC 9862 Section 4). Repeated objects for the same group are accepted.(26, 7)
The Association ID is not 1; the Association Source is unspecified or does not match the headend; or the Extended Association ID TLV is missing, has color 0, or has no valid endpoint (RFC 9862 Section 4.4).(26, 20)
SRPOLICY-CPATH-ID TLV is missing (RFC 9862 Section 4.5).(6, 21)
The LSP’s headend, color, or endpoint changes during the session (RFC 9862 Section 4.1).(26, 20)
The LSP’s Candidate Path Identifier changes during the session, or another LSP of the same SR Policy already uses it (RFC 9862 Section 4.2).(26, 21)

An LSP is treated as an SR Policy LSP when its PATH-SETUP-TYPE is SR-MPLS or SRv6, or, if the TLV is absent, when its ERO contains SR-ERO or SRv6-ERO subobjects.

The headend is the Tunnel Sender Address of the LSP-IDENTIFIERS TLV (RFC 8231 Section 7.3.1). If the Association Source uses a different address family, or the LSP-IDENTIFIERS TLV is absent, Pola cannot compare the Association Source with the headend. In these cases, Pola accepts any specified Association Source.

RFC 9862 Section 4.1 requires an originator to use the same SR Policy Identifier across its PCEP sessions. Pola can check this only within each session because it cannot see a PCC’s sessions with other PCEs. For LSPs initiated by Pola, the identifier is derived from the headend, color, and endpoint and is therefore consistent across sessions.

Legacy Cisco and Juniper PCCs

When Pola does not use the RFC 9862 encoding, it uses the vendor-specific encoding for the PCC’s association type. The SR Policy Association validation above does not apply to vendor association types. No RFC defines how these encodings handle a color of 0. Pola reports such a color as 0; it neither ignores nor rejects it. This is Pola’s handling of vendor-specific encodings, not an exception to RFC 9256, which defines the SR Policy color as non-zero.

PCC association typeEncoding Pola sendsColor and preference Pola reads
Legacy Juniper (Association Type 0xffe1)Juniper ASSOCIATION type 0xffe1 (IPv4 endpoints only).ASSOCIATION type 0xffe1.
Legacy Cisco (Association Type 0x14)Cisco-specific VENDOR-INFORMATION object.VENDOR-INFORMATION object.
Neither legacy typeCisco-specific VENDOR-INFORMATION object.SR Policy Association, or a vendor ASSOCIATION object, if present; otherwise the COLOR TLV (see COLOR TLV). VENDOR-INFORMATION is not read.

When Pola uses the RFC 9862 encoding, it uses it for every SR Policy LSP, even if the PCC also advertises a vendor association type (RFC 9862 Section 4). A PCC-originated SR Policy LSP reported only with a vendor association type is then rejected with PCErr (6, 22).

Not supported

PCEP

  • Stateless path computation. PCReq is answered with PCErr (2, 0).
  • PCNtf (counted but ignored), PCMonReq, and PCMonRep.
  • StartTLS, TLS, TCP-MD5, and TCP-AO.
  • Pola-initiated connections to PCCs.
  • Delegation handling: the D flag in PCRpt is ignored, and Pola sets D in every PCInitiate and PCUpd.
  • LSP-DB versioning, delta and triggered synchronization, P2MP, and multipath with more than one path.

Path computation

  • Bandwidth and disjointness constraints.
  • Affinity and SRLG constraints are not configurable per request. For Flex-Algo, they are taken from the FAD.
  • IGP Algorithms 1-127 (including Strict SPF) and Flex-Algo Calculation-Types other than SPF; a FAD using an unsupported Calculation-Type fails the request with FLEX_ALGO_UNSUPPORTED.
  • Flex-Algo FAPM; FADs containing unknown or repeated sub-TLVs, the FAD Unsupported sub-TLV, or unsupported FAD Flags bits; and multiple FAD TLVs for one algorithm from the same node. The M-flag is accepted but has no effect. See Flexible Algorithm (Flex-Algo).
  • Recomputing existing paths when the TED changes, including a changed or newly advertised FAD; see Known limitation: no recomputation on TED changes.
  • MSD-aware computation, Adj-SIDs, SID-list minimization, and uSID packing.
  • Deterministic selection among equal-cost paths.
  • RFC 9933 PCEP extensions, including SR-Algorithm signaling (the SR-Algorithm TLV and ERO/RRO Algorithm fields) and the extended METRIC object. Pola does not implement these extensions.

TED

  • TED sources other than GoBGP; TLS or authentication to GoBGP.
  • Multiple AS numbers.
  • MSD, bandwidth, the SRv6 Locator TLV, and FAPM (RFC 9351, TLV 1044).
  • ASLA sub-TLVs other than affinity, SRLG, TE metric, delay, and min-delay.

API and operations

  • TLS and authentication for the gRPC API.
  • Persistent LSP state.