diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-01 21:30:04 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-02 03:30:29 +0900 |
commit | 94836fe9a9e247361eb80d16e095c736732a7c61 (patch) | |
tree | 92e32b1986688f2f8ea7ce96f021b21a8e87cf29 /server | |
parent | 94b9f27c89d050c80183514986edebc9f6c8361f (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')
-rw-r--r-- | server/peer.go | 1 |
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, |