From e4285293e4368b251d2b232961d328ef79387958 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 7 Nov 2020 09:22:19 +0900 Subject: config: fix Peer Group AddPath Config Peer Group AddPath Config is deprecated but still needs to work. Signed-off-by: FUJITA Tomonori --- internal/pkg/config/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go index 859934d2..cc9ea059 100644 --- a/internal/pkg/config/util.go +++ b/internal/pkg/config/util.go @@ -549,6 +549,8 @@ func NewPeerGroupFromConfigStruct(pconf *PeerGroup) *api.PeerGroup { afiSafis := make([]*api.AfiSafi, 0, len(pconf.AfiSafis)) for _, f := range pconf.AfiSafis { if afiSafi := newAfiSafiFromConfigStruct(&f); afiSafi != nil { + afiSafi.AddPaths.Config.Receive = pconf.AddPaths.Config.Receive + afiSafi.AddPaths.Config.SendMax = uint32(pconf.AddPaths.Config.SendMax) afiSafis = append(afiSafis, afiSafi) } } -- cgit v1.2.3