summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-23 20:51:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-23 21:01:03 +0900
commit79a461c147ed58150a3d6653fb3440fe24018c8a (patch)
treeb91bf21d40aff0d03b09d93ef8e89596939164e7 /cmd
parentdbd0c21d2e97877de7a2d24ab975984c33371442 (diff)
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 <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 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)