-
Notifications
You must be signed in to change notification settings - Fork 2
bgp filter community
Pre-Alpha. This page describes behavior that may change.
Community filter plugin for tagging, stripping, and matching communities (standard, large, extended) on ingress and egress.
Policy.
plugin {
internal community { use bgp-filter-community }
}
bgp {
peer customer {
connection { remote { ip 10.0.0.1; } }
session { asn { remote 65001; } }
filter {
import [ community:scrub ];
export [ community:mark-customer ];
}
}
}
The external community block is the operator-chosen alias for the bgp-filter-community plugin, and the alias is what appears in filter references as community:<filter-name>. The specific filter names (community:scrub, community:mark-customer, and so on) come from the plugin's own configuration: each named filter is a rule the plugin registers at stage 1 of startup.
The plugin runs as a filter in the peer's filter { import | export } chain. On every UPDATE, it inspects the configured community types and either accepts, rejects, or modifies the route based on the rule.
Three common patterns the plugin supports out of the box:
- Tag. Add a community to outgoing routes.
- Strip. Remove specific communities from incoming routes.
- Match-and-act. Match a community pattern and drop or modify the route.
The plugin writes modifications into the egress ModAccumulator, which is lazy: a route with no community change incurs no copy of the wire bytes.
- Filters are referenced under
filter { import | export }using the<plugin>:<filter>syntax. See Route filters. - The plugin runs alongside any other filter plugins in the chain.
main/internal/component/bgp/plugins/filter_community/
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology