mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
dd :this_channel_is_insecure option to Stub.new() in ruby sample
This commit is contained in:
committed by
FUJITA Tomonori
parent
128580b529
commit
f9e5428ac8
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user