From 1cc19fd2800f047795473c5e2d6dbdfb86e24a70 Mon Sep 17 00:00:00 2001 From: YujiOshima Date: Fri, 6 Nov 2015 10:05:52 +0900 Subject: cmd/api: get peer remote router id not neighbor address Signed-off-by: YujiOshima --- server/server.go | 1 + 1 file changed, 1 insertion(+) (limited to 'server/server.go') diff --git a/server/server.go b/server/server.go index 67499076..386e82f3 100644 --- a/server/server.go +++ b/server/server.go @@ -1766,6 +1766,7 @@ func (server *BgpServer) handleGrpcModNeighbor(grpcReq *GrpcRequest) (sMsgs []*S var pconf config.Neighbor if a.Conf != nil { pconf.NeighborAddress = net.ParseIP(a.Conf.NeighborAddress) + pconf.NeighborConfig.NeighborAddress = net.ParseIP(a.Conf.NeighborAddress) pconf.NeighborConfig.PeerAs = a.Conf.PeerAs pconf.NeighborConfig.LocalAs = a.Conf.LocalAs if pconf.NeighborConfig.PeerAs != server.bgpConfig.Global.GlobalConfig.As { -- cgit v1.2.3