Skip to content

bgp route modify

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

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

Named route attribute modifier (set local-preference, med, origin, next-hop). Modifies route attributes on import or export without filtering.

Category

Policy.

Configuration

bgp {
    policy {
        modify set-localpref-200 {
            set local-preference 200;
        }
        modify set-med-100 {
            set med 100;
        }
    }
    peer upstream {
        filter {
            import [ set-localpref-200 ];
            export [ set-med-100 ];
        }
    }
}

Source

internal/component/bgp/plugins/filter_modify/

Home

About

First Steps

Configuration

Operation

Interfaces

Plugins

Plugin Development

Chaos Testing

Blueprints

Development

Reference

Clone this wiki locally