diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-20 08:03:54 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-04-21 15:37:11 +0900 |
commit | c6ddfb1d8ecc5944a775a458fbce648713ae3b02 (patch) | |
tree | 74b7b07a95211518df1b5225c76f79c813defef8 /server/server.go | |
parent | 8ab34acd769fbeb1647bf5161f349388df73c013 (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 'server/server.go')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index c774e47e..605d9fe4 100644 --- a/server/server.go +++ b/server/server.go @@ -1660,6 +1660,8 @@ func (server *BgpServer) handleModConfig(grpcReq *GrpcRequest) error { return err } server.bgpConfig.Global = *c + // update route selection options + table.SelectionOptions = c.RouteSelectionOptions.Config case api.Operation_DEL_ALL: for k, _ := range server.neighborMap { _, err := server.handleGrpcModNeighbor(&GrpcRequest{ |