summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-23 00:03:29 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-23 00:03:29 +0900
commit12ae36fb0fecdd068fa4b3a8c1ea36d95b29bf7c (patch)
tree35f34946924dded3fbe59c5d6e4b7cd74e283bd5 /table/table_manager.go
parent56f5c27011c50b3073cd30f5e9592da172203766 (diff)
table: not update timestamp if the path replaces the same path
If a new path has the exact same attributes that the existing one (after RouteRefresh), we don't update the timestamp. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/table_manager.go')
-rw-r--r--table/table_manager.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index 9a6f6e7b..242b8ae2 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -296,8 +296,8 @@ func (adj *AdjRib) DropAllIn(rf bgp.RouteFamily) {
}
type ReceivedRoute struct {
- path Path
- filtered bool
+ path Path
+ filtered bool
}
func (rr *ReceivedRoute) String() string {
@@ -307,8 +307,8 @@ func (rr *ReceivedRoute) String() string {
func NewReceivedRoute(path Path, filtered bool) *ReceivedRoute {
rroute := &ReceivedRoute{
- path: path,
- filtered: filtered,
+ path: path,
+ filtered: filtered,
}
return rroute
}