[BugFix:   if ssh to virtualrouter failed, rollack the virtualrouter flow
@@ -133,7 +133,12 @@ public class VyosConfigSshFlow extends NoRollbackFlow {
new Ssh().shell(script
).setTimeout(300).setPassword(password).setUsername("vyos").setHostname(mgmtNicIp).setPort(22).runErrorByExceptionAndClose();
}
+
+ if (NetworkUtils.isRemotePortOpen(mgmtNicIp, 22, 2000)) {
trigger.next();
+ } else {
+ trigger.fail(operr("unable to ssh in to the vyos[%s] after configure ssh", mgmtNicIp));
+ }
}
