mirror of https://github.com/apache/cloudstack.git
bug 6807: add the source nat ip with net mask
status 6807: resolved fixed
This commit is contained in:
parent
d6a2766c04
commit
149a5d0eb9
|
|
@ -1327,11 +1327,15 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
|
|||
}
|
||||
if (sourceNat) {
|
||||
args += " -f";
|
||||
long cidrSize = NetUtils.getCidrSize(vlanNetmask);
|
||||
args += " -l ";
|
||||
args += publicIpAddress + "/" + Long.toString(cidrSize);
|
||||
} else {
|
||||
args += " -l ";
|
||||
args += publicIpAddress;
|
||||
}
|
||||
args += " -i ";
|
||||
args += privateIpAddress;
|
||||
args += " -l ";
|
||||
args += publicIpAddress;
|
||||
args += " -c ";
|
||||
args += "eth" + correctVif.getDevice(conn);
|
||||
args += " -g ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue