-
Notifications
You must be signed in to change notification settings - Fork 2
bgp watchdog
Pre-Alpha. This page describes behavior that may change.
Deferred route announcement controlled by named watchdog groups. Pairs with the healthcheck plugin to drive announce and withdraw based on external service state.
Resilience.
Static routes attach to a watchdog group. The group is either announced (when UP) or withdrawn (when DOWN).
bgp {
peer upstream {
update {
attribute { origin igp; next-hop self; }
nlri { ipv4/unicast add 10.0.0.1/32; }
watchdog { name hc-dns; withdraw true; }
}
}
}
When withdraw true, the route is announced on UP and withdrawn on DOWN. When withdraw false, the route is re-announced with a different MED instead of withdrawn.
The plugin tracks a set of named watchdog groups. Each route attached to a group is held in a deferred state until the group becomes active. When the group flips to UP, the plugin dispatches the announce. When it flips to DOWN, the plugin dispatches the withdraw (or re-announce, depending on withdraw).
Multiple routes can share the same watchdog group. The group flips once, and every attached route updates together.
Registered via ConfigureMetrics on the plugin registration. All are on the main Prometheus endpoint.
| Metric | Type | Meaning |
|---|---|---|
ze_watchdog_peers_up |
gauge | Watchdog peers with established sessions. |
ze_watchdog_route_announcements_total |
counter | Watchdog routes announced to peers. |
ze_watchdog_route_withdrawals_total |
counter | Watchdog routes withdrawn from peers. |
See plugin metrics for the registration pattern.
-
bgp-healthcheckdrives watchdog groups from shell-command probes. - Plugins can dispatch group state changes programmatically through the SDK.
main/internal/component/bgp/plugins/watchdog/
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