mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
config: Copy afi-safi objects from peer group to neighbor instead of share the same array
This commit is contained in:
committed by
FUJITA Tomonori
parent
8e6bd4c714
commit
6192f90200
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user