From 3235c0618cfc320c0ad751d83d850ec714fa1c49 Mon Sep 17 00:00:00 2001 From: Wataru Ishida Date: Sat, 20 Aug 2016 19:15:53 +0000 Subject: api/cli: kill cmd package custom path/destination structs reuse table package Signed-off-by: Wataru Ishida --- api/grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/grpc_server.go') diff --git a/api/grpc_server.go b/api/grpc_server.go index 225c3971..a850100c 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -251,7 +251,7 @@ func (s *Server) GetRib(ctx context.Context, arg *GetRibRequest) (*GetRibRespons } dsts := []*Destination{} - for _, dst := range tbl.GetSortedDestinations() { + for _, dst := range tbl.GetDestinations() { dsts = append(dsts, &Destination{ Prefix: dst.GetNlri().String(), Paths: func(paths []*table.Path) []*Path { -- cgit v1.2.3