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. Modifies route attributes on import or export without filtering.

Category

Policy.

Configuration

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

bgp {
    policy {
        modify set-localpref {
            set {
                local-preference 200;
            }
        }
        modify prepend-twice {
            set {
                as-path-prepend 2;
            }
        }
    }
    peer upstream {
        filter {
            import [ set-localpref ];
            export [ prepend-twice ];
        }
    }
}

Available attributes in the set container:

Leaf Type Description
local-preference uint32 Set LOCAL_PREF.
med uint32 Set MED.
origin igp, egp, incomplete Set ORIGIN.
next-hop IP address Set NEXT_HOP.
as-path-prepend uint8 (1-32) Prepend own AS N times.

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