-
Notifications
You must be signed in to change notification settings - Fork 2
bgp nlri srpolicy
Pre-Alpha. This page describes behavior that may change.
SR-Policy NLRI (SAFI 73, RFC 9830) carries Segment Routing policy information over BGP. Ze ships the bgp-nlri-srpolicy plugin for both IPv4 and IPv6 SR-Policy families.
| Family | Config name | AFI / SAFI | Encode | Decode |
|---|---|---|---|---|
| IPv4 SR-Policy | ipv4/sr-policy |
1 / 73 | Yes | Yes |
| IPv6 SR-Policy | ipv6/sr-policy |
2 / 73 | Yes | Yes |
Enable SR-Policy as an address family on a peer:
bgp {
peer controller {
connection { remote { ip 10.0.0.1; } }
session {
asn { local 65000; remote 65100; }
family {
ipv4/sr-policy { prefix { maximum 10000; } }
ipv6/sr-policy { prefix { maximum 10000; } }
}
}
}
}
Each SR-Policy NLRI encodes a Distinguisher (4 bytes), Color (4 bytes), and Endpoint address (4 bytes for IPv4, 16 bytes for IPv6). The NLRI is carried in MP_REACH_NLRI / MP_UNREACH_NLRI attributes.
SR-Policy routes typically carry the Tunnel Encapsulation attribute (type 23, RFC 9012) containing the segment list and binding SID. Ze parses Tunnel Encapsulation TLVs on received updates and preserves them on forwarded updates.
SR-Policy NLRIs are supported through the ExaBGP bridge (ze exabgp plugin), allowing existing scripts to announce and withdraw SR-Policy routes.
The plugin registers the two SR-Policy families with the NLRI splitter. It decodes incoming SR-Policy NLRIs, makes them available to the RIB and filter chain, and re-encodes them on the egress path. ADD-PATH is supported.
| Plugin | Interaction |
|---|---|
bgp-rib |
Stores SR-Policy routes alongside other families. |
bgp-rs |
Route server forwards SR-Policy NLRIs to clients. |
bgp-filter-community |
Community filters apply to SR-Policy routes. |
- Address Families for the full family list.
- SRv6 for Segment Routing over IPv6 with Prefix-SID.
- Plugins for the plugin catalogue.
Adapted from the srpolicy plugin source code and RFC 9830.
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology