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.

Category

Policy.

Configuration

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

Entries are evaluated in order; first match wins.

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