summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-06-13 22:47:39 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-06 11:08:15 +0900
commit51dad96b92fbd483d7674f8f8617cd2bf8ac965b (patch)
treeb9a6da4b026a57e57e66f05e4e0f2c57f9b31419 /server/server.go
parent6192f9020000a8e1d581a3f92c206189a033bf39 (diff)
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 <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go2
1 files changed, 1 insertions, 1 deletions
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)
}