diff options
Diffstat (limited to 'table')
-rw-r--r-- | table/destination.go | 4 | ||||
-rw-r--r-- | table/table_manager_test.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/table/destination.go b/table/destination.go index aeabfbd0..9461713b 100644 --- a/table/destination.go +++ b/table/destination.go @@ -55,7 +55,7 @@ type Destination interface { setBestPathReason(string) getBestPath() Path setBestPath(path Path) - getOldBestPath() Path + GetOldBestPath() Path setOldBestPath(path Path) getKnownPathList() []Path String() string @@ -121,7 +121,7 @@ func (dd *DestinationDefault) setBestPath(path Path) { dd.bestPath = path } -func (dd *DestinationDefault) getOldBestPath() Path { +func (dd *DestinationDefault) GetOldBestPath() Path { return dd.oldBestPath } diff --git a/table/table_manager_test.go b/table/table_manager_test.go index c9d6e22a..8c9a8ab4 100644 --- a/table/table_manager_test.go +++ b/table/table_manager_test.go @@ -1639,7 +1639,7 @@ func TestProcessBGPUpdate_bestpath_lost_ipv4(t *testing.T) { assert.NoError(t, err) // check old best path - path := wList[0].getOldBestPath() + path := wList[0].GetOldBestPath() expectedType := "*table.IPv4Path" assert.Equal(t, reflect.TypeOf(path).String(), expectedType) @@ -1719,7 +1719,7 @@ func TestProcessBGPUpdate_bestpath_lost_ipv6(t *testing.T) { assert.NoError(t, err) // check old best path - path := wList[0].getOldBestPath() + path := wList[0].GetOldBestPath() expectedType := "*table.IPv6Path" assert.Equal(t, reflect.TypeOf(path).String(), expectedType) |