diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-16 17:53:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-16 17:53:08 +0900 |
commit | 504bd6f749224c493f3aa49197674ec08e7c0efe (patch) | |
tree | 1dedc510abc57ac38918cd47f733ac2cc086431b /table/table.go | |
parent | bd82fbdeb6250b2e8f4c18f1792a38a7a5109fad (diff) |
table: remove sentroute stuff
It's not necessary for our first target (multi RIB route server).
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table.go')
-rw-r--r-- | table/table.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/table/table.go b/table/table.go index 87c92ddd..9b1aaa08 100644 --- a/table/table.go +++ b/table/table.go @@ -74,26 +74,6 @@ func insert(table Table, path Path) Destination { } return dest } -func insertSentRoute(table Table, sentRoute *SentRoute) { - pd := sentRoute.path - table.validatePath(pd) - dest := getOrCreateDest(table, pd.getNlri()) - dest.addSentRoute(sentRoute) -} - -//"Remove old paths from whose source is `peer` -func (td *TableDefault) cleanupPathsForPeer(peer *Peer) { - for _, dest := range td.destinations { - pathsDeleted := dest.removeOldPathsFromSource(peer) - hadSent := dest.removeSentRoute(peer) - if hadSent { - logger.Errorf("Cleaning paths from table %s for peer %s.", td, peer) - } - if pathsDeleted != nil { - //need _signal_bus.dest_changed(dest) - } - } -} /* //Cleans table of any path that do not have any RT in common with interested_rts |