diff options
-rw-r--r-- | cmd/gobgpd/main.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cmd/gobgpd/main.go b/cmd/gobgpd/main.go index 06b38b88..546b4e47 100644 --- a/cmd/gobgpd/main.go +++ b/cmd/gobgpd/main.go @@ -391,7 +391,7 @@ func main() { } } for _, pg := range updatedPg { - log.Infof("PeerGroup %v is updated", pg.State.PeerGroupName) + log.Infof("PeerGroup %s is updated", pg.Config.PeerGroupName) if u, err := bgpServer.UpdatePeerGroup(context.Background(), &api.UpdatePeerGroupRequest{ PeerGroup: config.NewPeerGroupFromConfigStruct(&pg), }); err != nil { @@ -400,14 +400,6 @@ func main() { updatePolicy = updatePolicy || u.NeedsSoftResetIn } } - for _, pg := range updatedPg { - log.Infof("PeerGroup %s is updated", pg.Config.PeerGroupName) - if _, err := bgpServer.UpdatePeerGroup(context.Background(), &api.UpdatePeerGroupRequest{ - PeerGroup: config.NewPeerGroupFromConfigStruct(&pg), - }); err != nil { - log.Warn(err) - } - } for _, dn := range newConfig.DynamicNeighbors { log.Infof("Dynamic Neighbor %s is added to PeerGroup %s", dn.Config.Prefix, dn.Config.PeerGroup) if err := bgpServer.AddDynamicNeighbor(context.Background(), &api.AddDynamicNeighborRequest{ |