-
Notifications
You must be signed in to change notification settings - Fork 4
bgp ls export
Pre-Alpha. This page describes behavior that may change.
BGP-LS origination (RFC 9552). The bgp-ls-export plugin advertises Ze's own IS-IS and OSPF link-state databases, and its EPE segments, to BGP-LS collectors such as a PCE or an SDN controller.
Link state and traffic engineering.
plugin {
internal native-export { use bgp-ls-export; }
}
bgp-ls-export { }
isis {
net 49.0001.0000.0000.0001.00
level l1
}
bgp {
peer collector {
connection {
remote { ip 192.0.2.10; }
}
session {
asn { local 65000; remote 65000; }
family { bgp-ls/bgp-ls { prefix { maximum 10000; } } }
capability { route-refresh enable; }
}
attach process native-export {
receive [ state refresh ];
send [ update ];
}
}
}
The bgp-ls-export block is a presence container: writing it starts the exporter, and removing it stops the exporter and withdraws its routes. The schema is always loaded, so no --plugin flag is needed. A collector peer negotiates bgp-ls/bgp-ls and attaches the plugin with state and refresh delivery and permission to send UPDATEs.
Each native domain keeps its own identifier unless you map it to a routing-universe Instance-ID.
bgp-ls-export {
domain core-isis {
source isis;
protocol-id 2;
native-instance 0;
native-area 1;
instance-id 100;
}
}
| Leaf | Type | Meaning |
|---|---|---|
domain <name> |
list, up to 65536 | Operator name for one mapping. |
source |
string | Registered link-state publisher: isis, ospf, or bgp-epe. |
protocol-id |
1 to 7 | BGP-LS Protocol-ID of the native snapshot this mapping selects. |
native-instance |
uint64 | Instance number the source publishes. |
native-area |
uint32 | Numeric OSPF area or IS-IS level the source publishes. |
instance-id |
uint64 | Eight-octet Instance-ID placed in the originated NLRIs. All leaves are mandatory. |
Assign distinct Instance-IDs when two native domains describe different routing universes. A replacement that would give an existing cross-domain NLRI different attributes is refused.
- IS-IS and OSPF publish complete database snapshots on an internal event bus. The exporter never imports an IGP plugin or reads its state directly. A source generation number stops an older snapshot resurrecting a removed domain.
- Standard Node, Link, IPv4 and IPv6 Prefix, and SRv6 SID NLRIs are originated (SAFI 71). Private-use TLVs are never originated, and there is no SAFI 72 (VPN) origination.
- Each snapshot replaces the previous one: removed identities are withdrawn before replacements are announced. The exporter holds at most 65536 routes and refuses a larger replacement without touching the last accepted database.
- Every collector peer-up or BGP-LS route refresh receives the current database. A failed collector does not hold up the others.
- The exporter asks for
next-hop self, which resolves at delivery to the connected session's local address, so a reconnect uses the new session's endpoint. - Links in several topologies produce separate NLRIs, and non-default prefixes carry an MT-ID.
- The exporter needs the in-process engine event bus; it does not run as a forked plugin.
- Depends on
bgp-nlri-lsfor the codec. - Sources: IS-IS, OSPF, and
bgp-epe.
main/internal/component/bgp/plugins/ls_export/
- BGP-LS codec for decoding received BGP-LS.
- BGP EPE for Egress Peer Engineering segments.
-
Address families for
bgp-ls/bgp-ls.
Adapted from main/docs/architecture/wire/nlri-bgpls.md.
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
- Backup and Restore
- 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
- Path MTU
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Telemetry
- 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
- Link State
- 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