summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-06 11:21:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-06 11:21:38 +0900
commit69f866a77cb83db8925fb95fb55d6086fbfe899c (patch)
treeccab74cc11b14639734bda30c794271461e7bb33 /config
parent9ae30060eb399b825f035160d5b77df74789ffb6 (diff)
Fixing all megacheck errors.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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