summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/default.go b/config/default.go
index afe9af42..a6f7fc91 100644
--- a/config/default.go
+++ b/config/default.go
@@ -496,9 +496,7 @@ func OverwriteNeighborConfigWithPeerGroup(c *Neighbor, pg *PeerGroup) error {
overwriteConfig(&c.TtlSecurity.Config, &pg.TtlSecurity.Config, "neighbor.ttl-security.config", v)
if !v.IsSet("neighbor.afi-safis") {
- for _, afiSafi := range pg.AfiSafis {
- c.AfiSafis = append(c.AfiSafis, afiSafi)
- }
+ c.AfiSafis = append(c.AfiSafis, pg.AfiSafis...)
}
return nil