Examples
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.
| Lab | Data plane | Path | Routers | TED |
|---|---|---|---|---|
| sr-mpls-explicit-path | SR-MPLS | Explicit | IOS-XR (XRd), Junos (vJunos), FRRouting | Disabled |
| sr-mpls-explicit-path-l3vpn | SR-MPLS, VPNv4 | Explicit | FRRouting | Disabled |
| srv6-explicit-path-l3vpn | SRv6, VPNv4/VPNv6 | Explicit | Junos (vJunos) | Disabled |
| srv6-usid-dynamic-path | SRv6 uSID | Dynamic | IOS-XR (XRd), Junos (vJunos, PCC) | GoBGP |
| flex-algo-sr-mpls | SR-MPLS | Dynamic, Flex-Algo 128-130 | IOS-XR (XRd, PCC), Junos (vJunos, PCC) | GoBGP |
| flex-algo-srv6-usid | SRv6 uSID | Dynamic, Flex-Algo 128-130 | IOS-XR (XRd), Junos (vJunos, PCC) | GoBGP |
| srv6-usid-dynamic-path-loose-source-routing-sfc | SRv6 uSID | Dynamic with waypoints | IOS-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.