summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorFaicker Mo <faicker.mo@ucloud.cn>2019-11-01 12:04:37 +0800
committerFaicker Mo <faicker.mo@ucloud.cn>2019-11-01 12:08:57 +0800
commitef3a9674abef7a032d6ea9644347385e908f06f4 (patch)
tree2ddb46c9391bfe77f8e8c48075a12ca97dfecf60 /internal
parentda20a0539982bba9de3a30f720e4ebb69bbbfbbd (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.go4
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),