diff options
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 0c42878f..afdd71c9 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -277,9 +277,9 @@ func main() { } updatePolicy = updatePolicy || u } - for _, dn := range newConfig.DynamicNeighbors { + for i, dn := range newConfig.DynamicNeighbors { log.Infof("Dynamic Neighbor %s is added to PeerGroup %s", dn.Config.Prefix, dn.Config.PeerGroup) - if err := bgpServer.AddDynamicNeighbor(&dn); err != nil { + if err := bgpServer.AddDynamicNeighbor(&newConfig.DynamicNeighbors[i]); err != nil { log.Warn(err) } } |