summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/table/destination.go b/table/destination.go
index 9461713b..7be547c4 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -58,6 +58,7 @@ type Destination interface {
GetOldBestPath() Path
setOldBestPath(path Path)
getKnownPathList() []Path
+ setKnownPathList([]Path)
String() string
addWithdraw(withdraw Path)
addNewPath(newPath Path)
@@ -133,6 +134,10 @@ func (dd *DestinationDefault) getKnownPathList() []Path {
return dd.knownPathList
}
+func (dd *DestinationDefault) setKnownPathList(List []Path) {
+ dd.knownPathList = List
+}
+
func (dd *DestinationDefault) addWithdraw(withdraw Path) {
dd.validatePath(withdraw)
dd.withdrawList = append(dd.withdrawList, withdraw)