@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