summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-31 16:31:50 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-31 16:31:50 +0900
commit55f473d7fe07a72dbddcc424d4d6bce76e609e1b (patch)
tree51c2072eeeb201037515bebca4b469a7bc9b13ce /table/table.go
parent848dcec1f7bfc8313c1bc88bbd11be4167fe624a (diff)
gobgp: support mrt injecting only best paths
$ gobgp mrt inject global --only-best your-mrt-dump-file Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table.go')
-rw-r--r--table/table.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/table/table.go b/table/table.go
index 33db8130..d5434005 100644
--- a/table/table.go
+++ b/table/table.go
@@ -44,10 +44,10 @@ func (t *Table) insert(path *Path) *Destination {
if path.IsWithdraw {
// withdraw insert
- dest.addWithdraw(path)
+ dest.AddWithdraw(path)
} else {
// path insert
- dest.addNewPath(path)
+ dest.AddNewPath(path)
}
return dest
}
@@ -58,7 +58,7 @@ func (t *Table) DeleteDestByPeer(peerInfo *PeerInfo) []*Destination {
match := false
for _, p := range dst.knownPathList {
if p.GetSource().Equal(peerInfo) {
- dst.addWithdraw(p)
+ dst.AddWithdraw(p)
match = true
}
}