summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-25 20:58:18 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-25 20:58:18 -0800
commit01157e466a510a9d7c7290c26a131734e7566261 (patch)
tree8570631f12fa1d4210eda619021008b9a70b6c8d /server/server.go
parentc9a3fad2bd4ffecdc7c688cbbd0ecf6b3334ae74 (diff)
rename ModPath to ModPaths
ModPath API to modify multiple paths so let's use more an appropriate name. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go
index a534d5e3..893229c2 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1205,7 +1205,7 @@ func (server *BgpServer) Api2PathList(resource api.Resource, name string, ApiPat
func (server *BgpServer) handleModPathRequest(grpcReq *GrpcRequest) []*table.Path {
var err error
var paths []*table.Path
- arg, ok := grpcReq.Data.(*api.ModPathArguments)
+ arg, ok := grpcReq.Data.(*api.ModPathsArguments)
if !ok {
err = fmt.Errorf("type assertion failed")
}
@@ -1531,7 +1531,7 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg {
Data: d,
}
close(grpcReq.ResponseCh)
- case REQ_MOD_PATH:
+ case REQ_MOD_PATHS:
pathList := server.handleModPathRequest(grpcReq)
if len(pathList) > 0 {
msgs, _ = server.propagateUpdate(nil, pathList)