summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-15 14:04:52 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-15 14:04:52 +0900
commit0b42d76cbc62b350c9fdbcb8562c0bf6b479ed8f (patch)
treeae591f6a0d5bfd72c5a7a429580cc771a66c1775
parentb03ccd2d7e4afae8bfb6c1cbdb8af6f23356c974 (diff)
server: need to apply IN policy for newly added peer
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--server/server.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index 3aff34a6..9b684afc 100644
--- a/server/server.go
+++ b/server/server.go
@@ -361,7 +361,11 @@ func (server *BgpServer) Serve() {
continue
}
for _, rf := range peer.configuredRFlist() {
- pathList = append(pathList, p.adjRib.GetInPathList(rf)...)
+ for _, path := range p.adjRib.GetInPathList(rf) {
+ if path.Filtered == false {
+ pathList = append(pathList, path)
+ }
+ }
}
}
pathList, _ = peer.ApplyPolicy(table.POLICY_DIRECTION_IMPORT, pathList)