Fill in IPv6 and BGP unnumbered support in oxstats
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- networking, observability-sre
Direzione di ricerca
Leggi oxstats.rs, concentrandoti su bgp_stats(), static_stats() e rib_stats(), oltre che sui target BgpSession, StaticRoutingConfig e SwitchRib descritti nell’issue. Traccia il percorso dei valori PeerId e AddressFamily fino alle metriche, quindi determina come rappresentare i peer non numerati e le dimensioni IPv4/IPv6. Il lavoro è completo quando le statistiche BGP, delle route statiche e della RIB espongono i peer mancanti e le distinzioni delle famiglie di indirizzi senza perdere le metriche esistenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Oxstats currently has no awareness of the PeerId enum (allowing IP and interface based peers to coexist) and only queries the IPv4 Unicast address family. This needs to be updated for full (and correct) stats exposure into oxstats.
Asking Claude to summarize the gaps in oxstats for ipv6 and bgp unnumbered functionality:
Oxstats IPv6 / BGP Unnumbered Gaps
Gap 1: BGP unnumbered sessions are completely excluded from metrics
oxstats.rs:287-293 — The bgp_stats() method explicitly skips unnumbered sessions:
if let PeerId::Ip(addr) = key {
session_counters.insert(*addr, session.counters.clone());
session_count += 1;
}
PeerId::Interface(String) sessions (unnumbered peers discovered via NDP on an interface) are silently dropped. All 29 BGP counters (keepalives, opens, updates, prefixes, transitions, errors, etc.) are missing for unnumbered peers.
Root cause: The BgpSession oximeter target struct has a peer field that's typed as an IpAddr. An interface name like "eth0" can't be represented. The timeseries schema itself would need updating to support a string-based peer identifier, or a parallel timeseries for unnumbered sessions.
Gap 2: Static route stats only report IPv4
oxstats.rs:689-722 — The static_stats() method only queries IPv4:
self.db.get_static_count(AddressFamily::Ipv4)
// ...
self.db.get_static_nexthop_count(AddressFamily::Ipv4)
IPv6 static routes (AddressFamily::Ipv6) are completely ignored. The StaticRoutingConfig target doesn't differentiate by address family either, so even if you added IPv6 counts, there's no way to distinguish them in the current schema — the counts would need separate metrics or an address-family field on the target.
Gap 3: RIB stats are aggregated without AF breakdown
oxstats.rs:727-744 — The rib_stats() method calls full_rib(None), which merges IPv4 and IPv6 RIBs into a single ActiveRoutes gauge. There's no way to see IPv4 vs IPv6 active route counts independently. The SwitchRib target has no address-family dimension.
Summary
┌───────────────────────┬────────────────────────────┬──────────────────────────────────┬──────────────┐
│ Area │ IPv4 │ IPv6 │ Unnumbered │
├───────────────────────┼────────────────────────────┼──────────────────────────────────┼──────────────┤
│ BGP session counters │ Reported │ Reported (if numbered IPv6 peer) │ Not reported │
├───────────────────────┼────────────────────────────┼──────────────────────────────────┼──────────────┤
│ Static route counts │ Reported │ Not reported │ N/A │
├───────────────────────┼────────────────────────────┼──────────────────────────────────┼──────────────┤
│ Static nexthop counts │ Reported │ Not reported │ N/A │
├───────────────────────┼────────────────────────────┼──────────────────────────────────┼──────────────┤
│ RIB active routes │ Merged into single count │ Merged into single count │ N/A │
├───────────────────────┼────────────────────────────┼──────────────────────────────────┼──────────────┤
│ BFD │ Reported (keyed by IpAddr) │ Reported (keyed by IpAddr) │ N/A │
├───────────────────────┼────────────────────────────┼──────────────────────────────────┼──────────────┤
│ mg-lower │ Reported (no AF dimension) │ Same │ N/A │
└───────────────────────┴────────────────────────────┴──────────────────────────────────┴──────────────┘
The most significant gap is #1 — unnumbered BGP sessions have zero observability through oximeter. This is a blind spot for any deployment using BGP unnumbered, since you can't see session state transitions, keepalive health, or prefix exchange rates for those peers.
- Lingua principale
- Rust
- Stelle
- 100
- Fork
- 8
- Merge medio
- 2g 1h
- PR unite (30g)
- 18
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oxidecomputer/maghemite
-
ICMPv6 Router Solicitations are generated with invalid checksumsForse già presa @taspelund l’ha presa 154 giorni fa. ApertaBug mgd ndp rust
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
oxidecomputer/maghemite#802 ·
I maintainer di solito rispondono entro 1 giorno
-
ddm
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
oxidecomputer/maghemite#1039 ·
I maintainer di solito rispondono entro 1 giorno
-
ddm want
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
oxidecomputer/maghemite#1033 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug ddm rust
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
oxidecomputer/maghemite#997 ·
I maintainer di solito rispondono entro 1 giorno
-
🤖 ddm: a withdraw removes a route that a second source still givesForse già presa @taspelund l’ha presa 19 giorni fa. ApertaBug ddm rust
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
oxidecomputer/maghemite#996 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di oxidecomputer/maghemite
Issue simili
-
area: cli good first issue type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
renaming a provider to a taken name fails with a raw sql errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:storage kind:bug priority:p3 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug bugfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
storytold/photocraft#16975 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
expo/exact#1716 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno