From 51dad96b92fbd483d7674f8f8617cd2bf8ac965b Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 13 Jun 2018 22:47:39 +0900 Subject: api: remove table/ usage in util.go This is a part of work removing table/ usage in api/. api/ will depend on only protobuf stuff and packet/. Signed-off-by: FUJITA Tomonori --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/server.go b/server/server.go index 2293756d..6faecba9 100644 --- a/server/server.go +++ b/server/server.go @@ -2851,7 +2851,7 @@ func (w *Watcher) Generate(t WatchEventType) error { pathList := func() map[string][]*table.Path { pathList := make(map[string][]*table.Path) for _, t := range rib.Tables { - for _, dst := range t.GetSortedDestinations() { + for _, dst := range t.GetDestinations() { if paths := dst.GetKnownPathList(id, as); len(paths) > 0 { pathList[dst.GetNlri().String()] = clonePathList(paths) } -- cgit v1.2.3