Skip to content

Commit

Permalink
Merge pull request #517 from openconfig/gribi-embed
Browse files Browse the repository at this point in the history
Update gRIBI server to accommodate gRPC changes.
  • Loading branch information
robshakir authored Jan 6, 2025
2 parents 888127d + 95526b1 commit 0658390
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gribi/gribi.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,16 @@ func createGRIBIServer(gClient gpb.GNMIClient, target string, root *oc.Root, sys
log.Infof("Sent route %v with response %v", routeReq, resp)
}

return server.New(append([]server.ServerOpt{
s, err := server.New(append([]server.ServerOpt{
server.WithPostChangeRIBHook(ribHookfn),
server.WithRIBResolvedEntryHook(ribAddfn),
server.WithVRFs(networkInstances),
}, opts...)...)
if err != nil {
return nil, err
}
s.UnimplementedGRIBIServer = &gribipb.UnimplementedGRIBIServer{}
return s, nil
}

// createSetRouteRequest converts a Route to a sysrib SetRouteRequest
Expand Down

0 comments on commit 0658390

Please sign in to comment.