diff options
-rw-r--r-- | gobgp/cmd/neighbor.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gobgp/cmd/neighbor.go b/gobgp/cmd/neighbor.go index b39c1a56..1f92c9b9 100644 --- a/gobgp/cmd/neighbor.go +++ b/gobgp/cmd/neighbor.go @@ -269,7 +269,7 @@ func showNeighbor(args []string) error { fmt.Printf(" Local: %s", s) } } - if m := lookup(c, p.State.LocalCapabilityList); m != nil { + if m := lookup(c, p.State.RemoteCapabilityList); m != nil { g := m.(*bgp.CapGracefulRestart) if s := grStr(g); len(s) > 0 { fmt.Printf(" Remote: %s", s) @@ -294,7 +294,7 @@ func showNeighbor(args []string) error { fmt.Printf(" Local:\n%s", s) } } - if m := lookup(c, p.State.LocalCapabilityList); m != nil { + if m := lookup(c, p.State.RemoteCapabilityList); m != nil { g := m.(*bgp.CapLongLivedGracefulRestart) if s := grStr(g); len(s) > 0 { fmt.Printf(" Remote:\n%s", s) @@ -325,7 +325,7 @@ func showNeighbor(args []string) error { fmt.Printf(" Local: %s\n", s) } } - if m := lookup(c, p.State.LocalCapabilityList); m != nil { + if m := lookup(c, p.State.RemoteCapabilityList); m != nil { e := m.(*bgp.CapExtendedNexthop) if s := exnhStr(e); len(s) > 0 { fmt.Printf(" Remote: %s\n", s) |