diff options
Diffstat (limited to 'internal/pkg/config/util.go')
-rw-r--r-- | internal/pkg/config/util.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go index e895d8de..00ddb2ba 100644 --- a/internal/pkg/config/util.go +++ b/internal/pkg/config/util.go @@ -512,6 +512,10 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer { Enabled: pconf.EbgpMultihop.Config.Enabled, MultihopTtl: uint32(pconf.EbgpMultihop.Config.MultihopTtl), }, + TtlSecurity: &api.TtlSecurity{ + Enabled: pconf.TtlSecurity.Config.Enabled, + TtlMin: uint32(pconf.TtlSecurity.Config.TtlMin), + }, Timers: &api.Timers{ Config: &api.TimersConfig{ ConnectRetry: uint64(timer.Config.ConnectRetry), @@ -586,6 +590,10 @@ func NewPeerGroupFromConfigStruct(pconf *PeerGroup) *api.PeerGroup { Enabled: pconf.EbgpMultihop.Config.Enabled, MultihopTtl: uint32(pconf.EbgpMultihop.Config.MultihopTtl), }, + TtlSecurity: &api.TtlSecurity{ + Enabled: pconf.TtlSecurity.Config.Enabled, + TtlMin: uint32(pconf.TtlSecurity.Config.TtlMin), + }, Timers: &api.Timers{ Config: &api.TimersConfig{ ConnectRetry: uint64(timer.Config.ConnectRetry), |