summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-08-20 19:15:53 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-25 15:53:14 +0900
commit3235c0618cfc320c0ad751d83d850ec714fa1c49 (patch)
tree9bbc51cdb4e549dcb0567248d16c99dffd74e68d /api/grpc_server.go
parentb3c874da2581eb71d8c137d956e792565193ec0e (diff)
api/cli: kill cmd package custom path/destination structs
reuse table package Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r--api/grpc_server.go2
1 files changed, 1 insertions, 1 deletions
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 {