summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-20 08:03:54 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-21 15:37:11 +0900
commitc6ddfb1d8ecc5944a775a458fbce648713ae3b02 (patch)
tree74b7b07a95211518df1b5225c76f79c813defef8 /table/table_manager_test.go
parent8ab34acd769fbeb1647bf5161f349388df73c013 (diff)
table: use received time as tie-breaker
older path get preference can be disabled by `global.route-selection-options.external-compare-router-id = true` close #806 Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager_test.go')
-rw-r--r--table/table_manager_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/table/table_manager_test.go b/table/table_manager_test.go
index 21d70d84..8b072c44 100644
--- a/table/table_manager_test.go
+++ b/table/table_manager_test.go
@@ -1115,6 +1115,7 @@ func TestProcessBGPUpdate_6_select_ebgp_path_ipv6(t *testing.T) {
func TestProcessBGPUpdate_7_select_low_routerid_path_ipv4(t *testing.T) {
tm := NewTableManager([]bgp.RouteFamily{bgp.RF_IPv4_UC}, 0, 0)
+ SelectionOptions.ExternalCompareRouterId = true
// low origin message
origin1 := bgp.NewPathAttributeOrigin(0)