summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-11-13 14:26:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-15 12:06:49 +0900
commita4cd60e31d55a4a9a06cdd29a56c94fd6f374b53 (patch)
tree825bbc905efc7bb4e04c0507e4188270b7469df2 /server/server.go
parent14cd6c97277d6071ffab1b4b0681c4f261893ccc (diff)
server: support Neighbor.Trasnport configuration via grpc
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 629dfeab..c8267a44 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1931,6 +1931,10 @@ func (server *BgpServer) handleGrpcModNeighbor(grpcReq *GrpcRequest) (sMsgs []*S
config.AfiSafi{AfiSafiName: "ipv6-unicast"}}
}
}
+ if a.Transport != nil {
+ pconf.Transport.TransportConfig.LocalAddress = net.ParseIP(a.Transport.LocalAddress)
+ pconf.Transport.TransportConfig.PassiveMode = a.Transport.PassiveMode
+ }
return pconf
}
configneigh := apitoConfig(arg.Peer)