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 customers {
            entry 10.0.0.0/8 {
                le 24;
                action accept;
            }
            entry 172.16.0.0/12 {
                ge 16;
                le 28;
                action accept;
            }
        }
    }
    filter {
        import [ customers ];
    }
}

Each entry is keyed by prefix. ge and le constrain the prefix length. action is accept (default) or reject. 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