Skip to content

Commit

Permalink
move deconfigure to last step
Browse files Browse the repository at this point in the history
  • Loading branch information
czerwonk committed Dec 8, 2023
1 parent 0b33ddd commit 5cc0ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/bio-rd/bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ type bgpConfigurator struct {
}

func (c *bgpConfigurator) configure(cfg *config.BGP) error {
c.deconfigureRemovedSessions(cfg)

for _, bg := range cfg.Groups {
for _, bn := range bg.Neighbors {
err := c.configureSession(bn, bg)
Expand All @@ -31,6 +29,8 @@ func (c *bgpConfigurator) configure(cfg *config.BGP) error {
}
}

c.deconfigureRemovedSessions(cfg)

return nil
}

Expand Down

0 comments on commit 5cc0ae0

Please sign in to comment.