🤖 ddm: a dendrite delete removes all nexthops of a prefix

Aperta
#997 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Read ddm/src/sys.rs, especially remove_routes_dendrite at lines 407–456, the TODO at 387–390, and add_routes_dendrite at 182–228 for how it obtains port_id and link_id. Update deletion to remove only the target associated with the lost path. Confirm a route through another nexthop remains installed when one path is removed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug ddm rust
ddm: a dendrite delete removes all nexthops of a prefix

remove_routes_dendrite calls route_ipv6_delete(cidr) (sys.rs L407-L456). In dendrite at the pinned rev 24750281, this call deletes the route and all its targets. The call route_ipv6_delete_target(cidr, port_id, link_id, tgt_ip) deletes one target. The TODO at sys.rs L387-L390 identifies this problem.

Event: the last path through nexthop A goes. The DB still has a path through nexthop B.

dendrite route X Nexthop A (rear1) Nexthop B (rear2) X forwarded?
Before present present yes
Today: DELETE /route/ipv6/X removed removed no
Correct: DELETE /route/ipv6/X/rear1/0/A removed present yes

ddm still advertises X, because the DB has the path through B.

Correction: Use route_ipv6_delete_target. Get port_id and link_id as add_routes_dendrite does (sys.rs L182-L228).

Scope: This occurs only when a switch has more than one path to a prefix: multi-rack, or parallel links. In a single rack, a switch gets each sled prefix through one link.

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oxidecomputer/maghemite

Tutte le issue di oxidecomputer/maghemite

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.