summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-09-07 22:19:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-02 09:53:38 +0900
commit093945ee30f47555f28b389f14b62976586b8bac (patch)
tree2009e2c01f2b1cb0e6d2b19cc814868f1df18903 /table/path.go
parente84989706157ffd7b895f42e4057e3f8ca382b3d (diff)
table: sort all known paths instead of just selecting best
this is a preparation for add-path recv/send feature Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/table/path.go b/table/path.go
index b2c9bb55..7cfe37b0 100644
--- a/table/path.go
+++ b/table/path.go
@@ -40,6 +40,7 @@ type Path struct {
IsFromZebra bool
Filtered bool
Owner net.IP
+ reason BestPathReason
}
func NewPath(source *PeerInfo, nlri bgp.AddrPrefixInterface, isWithdraw bool, pattrs []bgp.PathAttributeInterface, medSetByTargetNeighbor bool, timestamp time.Time, noImplicitWithdraw bool) *Path {