summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorJunpei YOSHINO <junpei.yoshino@gmail.com>2016-03-22 21:11:20 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-22 21:11:20 +0900
commitf9e5428ac8bb1e78a9da82d434e8d2ddbb974891 (patch)
tree4a8088b66cc9801e3dc31237f54d7afa69107736 /tools
parent128580b5292629bfb06099a6df74f9291a695cbb (diff)
dd :this_channel_is_insecure option to Stub.new() in ruby sample
Diffstat (limited to 'tools')
-rw-r--r--tools/grpc/ruby/get_neighbors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/grpc/ruby/get_neighbors.rb b/tools/grpc/ruby/get_neighbors.rb
index e47b7913..36347373 100644
--- a/tools/grpc/ruby/get_neighbors.rb
+++ b/tools/grpc/ruby/get_neighbors.rb
@@ -4,7 +4,7 @@ require 'gobgp_services'
host = 'localhost'
host = ARGV[0] if ARGV.length > 0
-stub = Gobgpapi::GobgpApi::Stub.new("#{host}:50051")
+stub = Gobgpapi::GobgpApi::Stub.new("#{host}:50051", :this_channel_is_insecure)
arg = Gobgpapi::Arguments.new()
stub.get_neighbors(arg).each do |n|
puts "BGP neighbor is #{n.conf.neighbor_address}, remote AS #{n.conf.peer_as}"