Skip to content

Commit ea9e89e

Browse files
taktv6Oliver Geiselhardt-Herms
andauthored
RIS: Catch nil pointer in cli and expose EOR (#375)
Co-authored-by: Oliver Geiselhardt-Herms <ogeiselhardt-herms@cloudflare.com>
1 parent e30fc31 commit ea9e89e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmd/riscli/observe_rib.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ func observeRIB(c pb.RoutingInformationServiceClient, routerName string, vrfID u
7979
return fmt.Errorf("Receive failed: %w", err)
8080
}
8181

82-
printRoute(r.Route)
82+
if r.EndOfRib {
83+
fmt.Printf("Received End-Of-RIB marker\n")
84+
}
85+
86+
if r.Route != nil {
87+
printRoute(r.Route)
88+
}
8389
}
8490
}

0 commit comments

Comments
 (0)