summaryrefslogtreecommitdiffhomepage
path: root/table/adj.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-12 10:25:18 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-12 10:25:18 +0000
commite88d64b9454aee5a68ce0235eb4ae2a5588359d6 (patch)
tree301847530929225bb6974ffb3901059b45d39b68 /table/adj.go
parent139585c2f2eca467445d10b31b58c80d772a39d5 (diff)
table: fix bug in AdjRIb.PathList()
see 139585c2f2eca467445d10b31b58c80d772a39d5 commit log Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/adj.go')
-rw-r--r--table/adj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/adj.go b/table/adj.go
index 04dc714c..5e685f2e 100644
--- a/table/adj.go
+++ b/table/adj.go
@@ -91,7 +91,7 @@ func (adj *AdjRib) PathList(rfList []bgp.RouteFamily, accepted bool) []*Path {
pathList := make([]*Path, 0, adj.Count(rfList))
for _, rf := range rfList {
for _, rr := range adj.table[rf] {
- if accepted && rr.Filtered(adj.id) > POLICY_DIRECTION_NONE {
+ if accepted && rr.Filtered(adj.id) == POLICY_DIRECTION_IN {
continue
}
pathList = append(pathList, rr)