summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
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:")