summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorwanghonghao <wanghonghao@bytedance.com>2018-06-28 17:55:11 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-06 10:05:42 +0900
commit6192f9020000a8e1d581a3f92c206189a033bf39 (patch)
treeae49e2580ceb5dc25830efcc557967402f312e35 /config
parent8e6bd4c7145de5a68c40246418500bf05af9ce39 (diff)
config: Copy afi-safi objects from peer group to neighbor instead of share the same array
Diffstat (limited to 'config')
-rw-r--r--config/default.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/default.go b/config/default.go
index cbb11167..afe9af42 100644
--- a/config/default.go
+++ b/config/default.go
@@ -496,7 +496,9 @@ 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") {
- c.AfiSafis = pg.AfiSafis
+ for _, afiSafi := range pg.AfiSafis {
+ c.AfiSafis = append(c.AfiSafis, afiSafi)
+ }
}
return nil