Skip to content

Commit

Permalink
config: peer groups support ebgp multihop
Browse files Browse the repository at this point in the history
Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn>
  • Loading branch information
faickermo committed Nov 1, 2019
1 parent da20a05 commit ef3a967
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/config/util.go
Expand Up @@ -572,6 +572,10 @@ func NewPeerGroupFromConfigStruct(pconf *PeerGroup) *api.PeerGroup {
TotalPaths: s.TotalPaths,
TotalPrefixes: s.TotalPrefixes,
},
EbgpMultihop: &api.EbgpMultihop{
Enabled: pconf.EbgpMultihop.Config.Enabled,
MultihopTtl: uint32(pconf.EbgpMultihop.Config.MultihopTtl),
},
Timers: &api.Timers{
Config: &api.TimersConfig{
ConnectRetry: uint64(timer.Config.ConnectRetry),
Expand Down

0 comments on commit ef3a967

Please sign in to comment.