From 88504f08b2ea5497f58f9f01e368bbbc4b33e9ac Mon Sep 17 00:00:00 2001 From: root Date: Wed, 30 Mar 2016 12:00:55 +0300 Subject: Errors while compile gRPC client for C++ --- tools/grpc/cpp/gobgp_api_client.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/grpc/cpp/gobgp_api_client.cc b/tools/grpc/cpp/gobgp_api_client.cc index 4780ded7..413c140c 100644 --- a/tools/grpc/cpp/gobgp_api_client.cc +++ b/tools/grpc/cpp/gobgp_api_client.cc @@ -113,7 +113,7 @@ class GrpcClient { current_path->set_nlri(path_c_struct->nlri.value, path_c_struct->nlri.len); - gobgpapi::ModPathArguments request; + gobgpapi::ModPathsArguments request; request.set_resource(gobgpapi::Resource::GLOBAL); google::protobuf::RepeatedPtrField< ::gobgpapi::Path >* current_path_list = request.mutable_paths(); @@ -125,7 +125,7 @@ class GrpcClient { gobgpapi::Error return_error; // result is a std::unique_ptr > - auto send_stream = stub_->ModPath(&context, &return_error); + auto send_stream = stub_->ModPaths(&context, &return_error); bool write_result = send_stream->Write(request); @@ -180,7 +180,7 @@ class GrpcClient { current_path->set_nlri(path_c_struct->nlri.value, path_c_struct->nlri.len); - gobgpapi::ModPathArguments request; + gobgpapi::ModPathsArguments request; request.set_resource(gobgpapi::Resource::GLOBAL); google::protobuf::RepeatedPtrField< ::gobgpapi::Path >* current_path_list = request.mutable_paths(); current_path_list->AddAllocated(current_path); @@ -191,7 +191,7 @@ class GrpcClient { gobgpapi::Error return_error; // result is a std::unique_ptr > - auto send_stream = stub_->ModPath(&context, &return_error); + auto send_stream = stub_->ModPaths(&context, &return_error); bool write_result = send_stream->Write(request); -- cgit v1.2.3