diff options
author | Faicker Mo <faicker.mo@ucloud.cn> | 2019-11-01 12:04:37 +0800 |
---|---|---|
committer | Faicker Mo <faicker.mo@ucloud.cn> | 2019-11-01 12:08:57 +0800 |
commit | ef3a9674abef7a032d6ea9644347385e908f06f4 (patch) | |
tree | 2ddb46c9391bfe77f8e8c48075a12ca97dfecf60 /internal | |
parent | da20a0539982bba9de3a30f720e4ebb69bbbfbbd (diff) |
config: peer groups support ebgp multihop
Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn>
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pkg/config/util.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go index 522129a3..859934d2 100644 --- a/internal/pkg/config/util.go +++ b/internal/pkg/config/util.go @@ -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), |