diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-15 14:04:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-15 14:04:52 +0900 |
commit | 0b42d76cbc62b350c9fdbcb8562c0bf6b479ed8f (patch) | |
tree | ae591f6a0d5bfd72c5a7a429580cc771a66c1775 /server | |
parent | b03ccd2d7e4afae8bfb6c1cbdb8af6f23356c974 (diff) |
server: need to apply IN policy for newly added peer
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 6 |
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) |