summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorDenis Shevchenko <shevchenko_d@bifit.com>2016-03-01 12:52:11 +0300
committerDenis Shevchenko <shevchenko_d@bifit.com>2016-03-01 12:52:11 +0300
commit1b4dd198a7f9e29eec3893bef0e3cfbaf2a43395 (patch)
tree6b7f876477c182324adf73caa5da8a6a28d8c174 /server/server.go
parent94639ab6213c49e165867d1370748fd7adfef00f (diff)
server: set multihop parameters via grpc
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 8a3b8f83..2a661e23 100644
--- a/server/server.go
+++ b/server/server.go
@@ -2370,6 +2370,10 @@ func (server *BgpServer) handleGrpcModNeighbor(grpcReq *GrpcRequest) (sMsgs []*S
pconf.Transport.Config.LocalAddress = a.Transport.LocalAddress
pconf.Transport.Config.PassiveMode = a.Transport.PassiveMode
}
+ if a.EbgpMultihop != nil {
+ pconf.EbgpMultihop.Config.Enabled = a.EbgpMultihop.Enabled
+ pconf.EbgpMultihop.Config.MultihopTtl = uint8(a.EbgpMultihop.MultihopTtl)
+ }
return pconf, nil
}
configneigh, err := apitoConfig(arg.Peer)