mirror of https://github.com/apache/cloudstack.git
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:
parent
cd562aba33
commit
f456b51f4f
|
|
@ -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(":", "-");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue