Examples

Containerlab labs and Go gRPC client examples in the repository.

The labs run polad with emulated routers under Containerlab. Each lab’s README is the canonical description of its topology, images, and commands. Host setup shared by all labs is in the Containerlab conventions.

LabData planePathRoutersTED
sr-mpls-explicit-pathSR-MPLSExplicitIOS-XR (XRd), Junos (vJunos), FRRoutingDisabled
sr-mpls-explicit-path-l3vpnSR-MPLS, VPNv4ExplicitFRRoutingDisabled
srv6-explicit-path-l3vpnSRv6, VPNv4/VPNv6ExplicitJunos (vJunos)Disabled
srv6-usid-dynamic-pathSRv6 uSIDDynamicIOS-XR (XRd), Junos (vJunos, PCC)GoBGP
flex-algo-sr-mplsSR-MPLSDynamic, Flex-Algo 128-130IOS-XR (XRd, PCC), Junos (vJunos, PCC)GoBGP
flex-algo-srv6-usidSRv6 uSIDDynamic, Flex-Algo 128-130IOS-XR (XRd), Junos (vJunos, PCC)GoBGP
srv6-usid-dynamic-path-loose-source-routing-sfcSRv6 uSIDDynamic with waypointsIOS-XR (XRd), Junos (vJunos, PCC)GoBGP

The explicit-path labs disable the TED and therefore use --no-sid-validate when adding policies.

The uSID labs use port 50051 for GoBGP and 50052 for polad’s gRPC server. Their commands use pola -p 50052.

Router images (XRd, vJunos) are not distributed with Pola; obtain them from the vendors. The labs run the latest released image (ghcr.io/nttcom/pola:latest-debug), so features that exist only on the develop branch may not be available. The scenario tests use their own topologies.

Go gRPC client

examples/grpc/go contains small programs demonstrating the gRPC API: listing and deleting sessions, creating explicit, SRv6, and dynamic policies (with and without SID validation), listing and deleting policies, and querying the TED.

Use them as a starting point for your own controller.

Last modified December 3, 2026: feat: add ASLA (34bd43d)