diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-06 11:21:38 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-06 11:21:38 +0900 |
commit | 69f866a77cb83db8925fb95fb55d6086fbfe899c (patch) | |
tree | ccab74cc11b14639734bda30c794271461e7bb33 /config | |
parent | 9ae30060eb399b825f035160d5b77df74789ffb6 (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.go | 4 |
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 |