Skip to content

Commit 7496b00

Browse files
andrewsykimmurali-reddy
authored andcommitted
dont shutdown gobgp server if graceful restart is enabled (#526)
1 parent 02eb11b commit 7496b00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/controllers/routing/network_routes_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ func (nrc *NetworkRoutingController) Run(healthChan chan<- *healthcheck.Controll
222222
}
223223

224224
nrc.bgpServerStarted = true
225-
defer nrc.bgpServer.Shutdown()
225+
if !nrc.bgpGracefulRestart {
226+
defer nrc.bgpServer.Shutdown()
227+
}
226228

227229
// loop forever till notified to stop on stopCh
228230
for {

0 commit comments

Comments
 (0)