exchanging new version yang models on firmware upgrade
[oam/tr069-adapter.git] / netconf-server / src / main / java / org / commscope / tr069adapter / netconf / server / RestartNetconfServerHandler.java
index 6f7f9f2..bce2534 100644 (file)
@@ -40,14 +40,14 @@ public class RestartNetconfServerHandler {
   @Autowired\r
   ServerPortAllocationHelper serverPortAllocator;\r
 \r
-  @Retryable(value = {RetryFailedException.class}, maxAttempts = 100,\r
+  @Retryable(value = {RetryFailedException.class}, maxAttempts = 10,\r
       backoff = @Backoff(delay = 15000))\r
   public void restart(NetConfServerDetailsEntity entity) throws RetryFailedException {\r
     boolean isSucess = false;\r
     try {\r
       // restart netconf servers\r
       serverPortAllocator.checkAndReserveServerPort(entity.getListenPort());\r
-      isSucess = manager.restartServersOnStartup(entity);\r
+      isSucess = manager.startNetConfServerInstance(entity);\r
     } catch (Exception e) {\r
       logger.error("Retry to netconf servers has  is failed. {}", e.toString());\r
       throw new RetryFailedException(e);\r