RPSL

1 program Added 2026-02-28T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Routing Policy Specification Language
Provenance: commit da2641b2d6 · authored 2026-02-28T16:02:16+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

RPSLng (0.68)RSL (0.50)RAISE (0.49)JFlex (0.44)Z (0.43)

LLM-contributed programs

Multi-homed AS Routing Policy

Provenance: commit da2641b2d6 · authored 2026-02-28T16:02:16+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.rpsl · license: Public Domain · added: 2026-02-28T10:00:00Z
% RPSL Example: Routing policy for a multi-homed autonomous system
% Based on RFC 2622 - Routing Policy Specification Language

aut-num:    AS64501
as-name:    EXAMPLE-NET
descr:      Example Multi-homed Network
admin-c:    ADMIN-RIPE
tech-c:     TECH-RIPE
mnt-by:     MAINT-AS64501

% Import policies: accept full routes from upstream providers
import: from AS64502
        action pref=200;
        accept ANY
import: from AS64503
        action pref=100;
        accept ANY
import: from AS64504
        action pref=150;
        accept {10.0.0.0/8^16-24}

% Export policies: announce own prefixes to upstreams
export: to AS64502
        announce AS64501
export: to AS64503
        announce AS64501
export: to AS64504
        announce AS64501

% Route objects
route:      192.0.2.0/24
descr:      Primary prefix
origin:     AS64501
mnt-by:     MAINT-AS64501

route:      198.51.100.0/24
descr:      Secondary prefix
origin:     AS64501
mnt-by:     MAINT-AS64501

% Route set: all prefixes announced by this AS
route-set:  AS64501:RS-PREFIXES
descr:      All prefixes announced by AS64501
members:    192.0.2.0/24, 198.51.100.0/24

Contribute — propose a file extension

Tell us where to find evidence about RPSL (mapped to pl/rpsl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/RPSL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← rpscript RPSLng →