Skip to content

bgp filter prefix

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

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

Named prefix-list filter (CIDR + ge/le + accept/reject). Matches routes by prefix with optional length constraints.

Category

Policy.

Configuration

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

bgp {
    policy {
        prefix-list allow-default {
            entry 0.0.0.0/0 { action accept; }
            entry 0.0.0.0/0 { ge 8; le 24; action accept; }
            entry 0.0.0.0/0 { ge 25; action reject; }
        }
    }
    filter {
        import [ allow-default ];
    }
}

Entries are evaluated in order; first match wins.

Source

internal/component/bgp/plugins/filter_prefix/

Home

About

First Steps

Configuration

Operation

Interfaces

Plugins

Plugin Development

Chaos Testing

Blueprints

Development

Reference

Clone this wiki locally