summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-01 22:46:33 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-02-01 23:11:12 +0900
commit21b7301e049dc1ac5128001e49ec1a2b194ead7b (patch)
treeeeec9bec953df8e5bc2b92ee2fdcedad492a2646 /table/path.go
parent2419b8add20024c3c90210a36cf208a8ef467a10 (diff)
server: fix soft-reset-in to handle in-policy change properly
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/path.go b/table/path.go
index 65c33a26..12739ec6 100644
--- a/table/path.go
+++ b/table/path.go
@@ -214,7 +214,7 @@ func (path *Path) ToApiStruct(id string) *api.Path {
Age: int64(time.Now().Sub(path.OriginInfo().timestamp).Seconds()),
IsWithdraw: path.IsWithdraw,
Validation: int32(path.OriginInfo().validation.ToInt()),
- Filtered: path.Filtered(id) > POLICY_DIRECTION_NONE,
+ Filtered: path.Filtered(id) == POLICY_DIRECTION_IN,
Family: family,
}
}