From ef3a9674abef7a032d6ea9644347385e908f06f4 Mon Sep 17 00:00:00 2001 From: Faicker Mo Date: Fri, 1 Nov 2019 12:04:37 +0800 Subject: config: peer groups support ebgp multihop Signed-off-by: Faicker Mo --- internal/pkg/config/util.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal') 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), -- cgit v1.2.3