CS-15494 : move this to routerProxy

This commit is contained in:
anthony 2012-07-09 14:15:47 -07:00
parent 359e9eb5d7
commit 23dffc95ec
1 changed files with 2 additions and 2 deletions

View File

@ -1743,13 +1743,13 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
protected synchronized Answer execute(final VpnUsersCfgCommand cmd) {
Connection conn = getConnection();
for (VpnUsersCfgCommand.UsernamePassword userpwd: cmd.getUserpwds()) {
String args = cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);
String args = "vpn_l2tp.sh " + cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);
if (!userpwd.isAdd()) {
args += " -U " + userpwd.getUsername();
} else {
args += " -u " + userpwd.getUsernamePassword();
}
String result = callHostPlugin(conn, "vmops", "lt2p_vpn", "args", args);
String result = callHostPlugin(conn, "vmops", "routerProxy", "args", args);
if (result == null || result.isEmpty()) {
return new Answer(cmd, false, "Configure VPN user failed for user " + userpwd.getUsername());
}