summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-28 20:30:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-28 22:14:41 +0900
commit475818dd3ccaa613fdd972097cf689ff9a4a6012 (patch)
treee482ddd4899ab5975285633a2577f467bd449909 /cmd
parent97ad6b32ee61fd439c2edefbc371f748cdf82046 (diff)
api: remove unused members
fixes #1816 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/cmd/neighbor.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gobgp/cmd/neighbor.go b/cmd/gobgp/cmd/neighbor.go
index 25a53fc5..651fa7c9 100644
--- a/cmd/gobgp/cmd/neighbor.go
+++ b/cmd/gobgp/cmd/neighbor.go
@@ -447,7 +447,8 @@ func showNeighbor(args []string) error {
fmt.Printf(" Received: %10d\n", p.State.Received)
fmt.Printf(" Accepted: %10d\n", p.State.Accepted)
first := true
- for _, limit := range p.Conf.PrefixLimits {
+ for _, a := range p.AfiSafis {
+ limit := a.PrefixLimits
if limit.MaxPrefixes > 0 {
if first {
fmt.Println(" Prefix Limits:")