summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-24 20:45:53 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-25 20:15:04 +0900
commit7ec6a96962637d0c6f525ec6e8dd517f785842c7 (patch)
tree9a0b2f65e7221be2e01cb7e152c48fa5cb8f32f5 /cmd
parentae52d609352a4e0211c5ae2e3104703cdb94eb50 (diff)
api: move RouterId to PeerState from PeerConf
It's not configuration. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/neighbor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gobgp/neighbor.go b/cmd/gobgp/neighbor.go
index 19d5bbdc..e959a28f 100644
--- a/cmd/gobgp/neighbor.go
+++ b/cmd/gobgp/neighbor.go
@@ -231,8 +231,8 @@ func showNeighbor(args []string) error {
}
id := "unknown"
- if p.Conf.Id != "" {
- id = p.Conf.Id
+ if p.State != nil && p.State.RouterId != "" {
+ id = p.State.RouterId
}
fmt.Printf(" BGP version 4, remote router ID %s\n", id)
fmt.Printf(" BGP state = %s", p.State.SessionState)