diff --git a/pkg/controllers/routing/network_routes_controller.go b/pkg/controllers/routing/network_routes_controller.go index d5837d0d5a..baf5eecc5d 100644 --- a/pkg/controllers/routing/network_routes_controller.go +++ b/pkg/controllers/routing/network_routes_controller.go @@ -222,7 +222,9 @@ func (nrc *NetworkRoutingController) Run(healthChan chan<- *healthcheck.Controll } nrc.bgpServerStarted = true - defer nrc.bgpServer.Shutdown() + if !nrc.bgpGracefulRestart { + defer nrc.bgpServer.Shutdown() + } // loop forever till notified to stop on stopCh for {