Skip to content

bgp filter aspath

Thomas Mangin edited this page May 14, 2026 · 2 revisions

Pre-Alpha. This page describes behavior that may change.

Named AS-path regex filter (ordered entries, first match wins, accept/reject). Matches routes by AS-path regular expression using Go RE2 semantics (ReDoS-safe).

Category

Policy.

Configuration

Defined under bgp { policy { } } and referenced by name in peer filter chains:

bgp {
    policy {
        as-path-list no-transit {
            entry ".*65000.*" {
                action reject;
            }
            entry ".*" {
                action accept;
            }
        }
    }
    filter {
        import [ no-transit ];
    }
}

Each entry is keyed by regex. action is accept (default) or reject. Entries are evaluated in order; first match wins. The regex is matched against the space-separated decimal AS-path string.

Source

internal/component/bgp/plugins/filter_aspath/

Home

About

First Steps

Configuration

Operation

Interfaces

Plugins

Plugin Development

Chaos Testing

Blueprints

Development

Reference

Clone this wiki locally