From 0b42d76cbc62b350c9fdbcb8562c0bf6b479ed8f Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 15 Oct 2015 14:04:52 +0900 Subject: server: need to apply IN policy for newly added peer Signed-off-by: FUJITA Tomonori --- server/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server') 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) -- cgit v1.2.3