diff options
Diffstat (limited to 'gobgpd')
-rw-r--r-- | gobgpd/main.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gobgpd/main.go b/gobgpd/main.go index 31029635..67a0b2f4 100644 --- a/gobgpd/main.go +++ b/gobgpd/main.go @@ -248,17 +248,17 @@ func main() { c = newConfig } - for _, p := range added { + for i, p := range added { log.Infof("Peer %v is added", p.Config.NeighborAddress) - bgpServer.PeerAdd(p) + bgpServer.AddNeighbor(&added[i]) } - for _, p := range deleted { + for i, p := range deleted { log.Infof("Peer %v is deleted", p.Config.NeighborAddress) - bgpServer.PeerDelete(p) + bgpServer.DeleteNeighbor(&deleted[i]) } - for _, p := range updated { + for i, p := range updated { log.Infof("Peer %v is updated", p.Config.NeighborAddress) - u, _ := bgpServer.PeerUpdate(p) + u, _ := bgpServer.UpdateNeighbor(&updated[i]) updatePolicy = updatePolicy || u } |