From 79a461c147ed58150a3d6653fb3440fe24018c8a Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 23 Nov 2018 20:51:04 +0900 Subject: api: move remote_cap and local_cap to PeerState from PeerConf Both should be in PeerState like OpenConfig. Also remove unused supported_capabilities. Signed-off-by: FUJITA Tomonori --- cmd/gobgp/neighbor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/gobgp/neighbor.go b/cmd/gobgp/neighbor.go index b471e892..19d5bbdc 100644 --- a/cmd/gobgp/neighbor.go +++ b/cmd/gobgp/neighbor.go @@ -280,10 +280,10 @@ func showNeighbor(args []string) error { } return nil } - lcaps, _ := apiutil.UnmarshalCapabilities(p.Conf.LocalCap) + lcaps, _ := apiutil.UnmarshalCapabilities(p.State.LocalCap) caps = append(caps, lcaps...) - rcaps, _ := apiutil.UnmarshalCapabilities(p.Conf.RemoteCap) + rcaps, _ := apiutil.UnmarshalCapabilities(p.State.RemoteCap) for _, c := range rcaps { if lookup(c, caps) == nil { caps = append(caps, c) -- cgit v1.2.3