diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-11 14:43:15 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-11 14:43:15 +0900 |
commit | 31943b5229337b9648fd9ade8e4ec538f30c1a56 (patch) | |
tree | f41c475822a625562c168bf25dc8d03668307639 | |
parent | 7b350a733cd7e716c62d854016a2b4f5ad745de4 (diff) |
gobpg: add route statistics to neighbor <address> command output
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | gobgp/cmd/neighbor.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go index 09cac53f..2a577461 100644 --- a/gobgp/cmd/neighbor.go +++ b/gobgp/cmd/neighbor.go @@ -226,6 +226,10 @@ func showNeighbor(args []string) error { fmt.Printf(" Route Refesh: %10d %10d\n", p.Info.RefreshMessageOut, p.Info.RefreshMessageIn) fmt.Printf(" Discarded: %10d %10d\n", p.Info.DiscardedOut, p.Info.DiscardedIn) fmt.Printf(" Total: %10d %10d\n", p.Info.TotalMessageOut, p.Info.TotalMessageIn) + fmt.Print(" Route statistics:\n") + fmt.Printf(" Advertised: %10d\n", p.Info.Advertized) + fmt.Printf(" Received: %10d\n", p.Info.Received) + fmt.Printf(" Accepted: %10d\n", p.Info.Accepted) return nil } |