summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorkishiguro <ishi@hash-set.com>2017-04-04 13:48:17 -0700
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-04-17 22:23:34 +0900
commit70e12e08693967c04565e0d84b4da7f65fee4219 (patch)
treeb0961aeeda4c5df667340a4a992fd784eae878ee
parent7307b1490ec097921956d032f05e359ef2afdb9c (diff)
"gobgp neighbor NEIGHBOR" output shows local capabiity as remote one.
-rw-r--r--gobgp/cmd/neighbor.go6
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)