summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-10-01 21:30:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-02 03:30:29 +0900
commit94836fe9a9e247361eb80d16e095c736732a7c61 (patch)
tree92e32b1986688f2f8ea7ce96f021b21a8e87cf29 /server/peer.go
parent94b9f27c89d050c80183514986edebc9f6c8361f (diff)
cli: add command to show accepted/rejected routes
$ gobgp neighbor <remote addr> accepted $ gobgp neighbor <remote addr> rejected Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index a36c44a2..7029553a 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -446,6 +446,7 @@ func (peer *Peer) ApplyPolicy(d PolicyDirection, paths []*table.Path) []*table.P
peer.accepted += 1
}
case policy.ROUTE_TYPE_REJECT:
+ path.Filtered = true
log.WithFields(log.Fields{
"Topic": "Peer",
"Key": peer.conf.NeighborConfig.NeighborAddress,