CS-15763: InterVlan - VMWare - Failed to assign PortForwarding rule to guest VM - SSH execution of command /opt/cloud/bin/vpc_portforwarding.sh -A -P tcp -l 10.223.139.21 -p 22-22 -r 192.168.11.186 -d 22-22 has an error status code in return.

Description:

	Fixed incorrect destination port range specification
	in VmwareResource.
This commit is contained in:
Vijayendra Bhamidipati 2012-07-30 16:18:49 -07:00
parent cd562aba33
commit f456b51f4f
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
args += rule.revoked() ? " -D" : " -A";
args += " -P " + rule.getProtocol().toLowerCase();
args += " -l " + rule.getSrcIp();
args += " -p " + rule.getStringSrcPortRange().replace(":", "-");
args += " -p " + rule.getStringSrcPortRange();
args += " -r " + rule.getDstIp();
args += " -d " + rule.getStringDstPortRange().replace(":", "-");