summaryrefslogtreecommitdiffhomepage
path: root/table/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/table.go')
-rw-r--r--table/table.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/table/table.go b/table/table.go
index 08637522..c3b48812 100644
--- a/table/table.go
+++ b/table/table.go
@@ -303,6 +303,17 @@ func (t *Table) Bests(id string) []*Path {
return paths
}
+func (t *Table) MultiBests(id string) [][]*Path {
+ paths := make([][]*Path, 0, len(t.destinations))
+ for _, dst := range t.destinations {
+ path := dst.GetMultiBestPath(id)
+ if path != nil {
+ paths = append(paths, path)
+ }
+ }
+ return paths
+}
+
func (t *Table) GetKnownPathList(id string) []*Path {
paths := make([]*Path, 0, len(t.destinations))
for _, dst := range t.destinations {