mirror of https://github.com/apache/cloudstack.git
Bug 13082 - Refreshing srx connection on every synchronized command
This commit is contained in:
parent
dc4db76932
commit
f1663bafa7
|
|
@ -580,6 +580,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||
*/
|
||||
|
||||
private synchronized Answer execute(IpAssocCommand cmd) {
|
||||
refreshSrxConnection();
|
||||
return execute(cmd, _numRetries);
|
||||
}
|
||||
|
||||
|
|
@ -707,6 +708,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||
*/
|
||||
|
||||
private synchronized Answer execute(SetStaticNatRulesCommand cmd) {
|
||||
refreshSrxConnection();
|
||||
return execute(cmd, _numRetries);
|
||||
}
|
||||
|
||||
|
|
@ -800,6 +802,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||
*/
|
||||
|
||||
private synchronized Answer execute(RemoteAccessVpnCfgCommand cmd) {
|
||||
refreshSrxConnection();
|
||||
return execute(cmd, _numRetries);
|
||||
}
|
||||
|
||||
|
|
@ -912,6 +915,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||
}
|
||||
|
||||
private synchronized Answer execute(VpnUsersCfgCommand cmd) {
|
||||
refreshSrxConnection();
|
||||
return execute(cmd, _numRetries);
|
||||
}
|
||||
|
||||
|
|
@ -971,6 +975,7 @@ public class JuniperSrxResource implements ServerResource {
|
|||
*/
|
||||
|
||||
private synchronized Answer execute (SetPortForwardingRulesCommand cmd) {
|
||||
refreshSrxConnection();
|
||||
return execute(cmd, _numRetries);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue