summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-19 07:57:40 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-19 11:12:44 +0000
commitcb19260575107caa1ba17df1a6c2c9918f4009a2 (patch)
treec20f8bd3289bb7c26a6cadffe1a2ee6076427b91 /server
parentefc61d809c15ca8f994399b0160c0f144e59f414 (diff)
server: fix bug of BgpServer.PeerDelete()
`GrpcRequest.Data` is supposed to be `*Peer` not `Peer` Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index acb15932..a2bd40e8 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1069,7 +1069,7 @@ func (server *BgpServer) PeerDelete(peer config.Neighbor) error {
ch := make(chan *GrpcResponse)
server.GrpcReqCh <- &GrpcRequest{
RequestType: REQ_DEL_NEIGHBOR,
- Data: peer,
+ Data: &peer,
ResponseCh: ch,
}
return (<-ch).Err()