diff options
author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-11-07 09:22:19 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-11-07 12:51:04 +0900 |
commit | e4285293e4368b251d2b232961d328ef79387958 (patch) | |
tree | e9b6eeb58367951c08baf0dc37891ae030634654 /internal | |
parent | 393d82f955cf432fb41871275566e16fc7992e3e (diff) |
config: fix Peer Group AddPath Config
Peer Group AddPath Config is deprecated but still needs to work.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal')
-rw-r--r-- | internal/pkg/config/util.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) } } |