Skip to content

Commit

Permalink
Fix syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
robshakir committed Jan 6, 2025
1 parent ebfc91c commit 95526b1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gribi/gribi.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ func New(s *grpc.Server, gClient gpb.GNMIClient, target string, root *oc.Root, s
}

srv := &Server{
UnimplementedGRIBIServer: &gribipb.UnimplementedGRIBIServer{},
Server: gs,
s: s,
Server: gs,
s: s,
}
gribipb.RegisterGRIBIServer(s, srv)

Expand Down Expand Up @@ -159,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 95526b1

Please sign in to comment.